Questions tagged [callback]
A callback is a piece of code (i.e. the address or reference of a function or method or a lambda expression) that is passed as an argument to other code, which is expected to call back (execute) the argument at some convenient time. This tag should be used with questions about an API that uses call backs to notify the caller when an action is complete. Use the event-handling tag for questions involving subscribing to events such as in a GUI framework.
callback
18,187
questions
1
vote
0
answers
9
views
Facing session issues during Razorpay callback in CodeIgniter; redirects to login or payment page instead of success page after payment
When a parent completes the fee payment using Razorpay, the payment is processed successfully on the Razorpay side. However, after the payment, instead of redirecting the user to a success page, the ...
0
votes
0
answers
25
views
How to pass callback data to flask route function?
I wan't to pass data to a route function, when registering the callback.
def foo (bar):
print (bar)
app.add_url_rule ("/", "foo", foo)
How can I pass data directly to bar (i....
0
votes
2
answers
31
views
(Micro-) Python callback function inside class throws type error
I'm more or less new to Python and still struggling a bit with OOP (coming from C - not C++).
I want reuse and extend a rotary encoder class and just wanted to add a switch with an interrupt callback ...
0
votes
0
answers
32
views
How failure(job) callback work in DelayedJob?
How does failure(job) callback work in DelayedJob?
I want that in my delayed job max_attempts is 5 and after 5 attempts, the job is failed then call failure(job) callback—in rails 6 or greater.
class ...
0
votes
0
answers
35
views
FreeRTOS callback is not called
I'm writing some code for ESP32-S3 with ESP-IDF that uses FreeRTOS.
I create a simple task to read data from stdin and I want to invoke a callback after a reading.
Here's my code:
main.c
#include <...
0
votes
0
answers
23
views
Trouble separating instances of bokeh server embedded in flask app
I'm relatively new to using both bokeh and flask and am having some issues with data being shared between instances of my app.
I have removed a lot of my code so that I can include it below:
import ...
0
votes
1
answer
25
views
Redmine (RoR)- Accessing IssueRelation during issue destruction
My goal is to propagate the deletion of an issue to change a custom field of the linked issue. So, I intercept the destruction of an issue.
I'm encountering a problem in my redmine plugin. ...
-1
votes
1
answer
112
views
Stroustrup's Programming Principles and Practice 3rd edition graphics: why passing a callback function to Window::timer_wait gets unexpected results?
Section 14.6 (Simple animation) in Stroustrup's "Programming Principles and Practice using C++" third edition uses his PPP graphics library, which in turn makes use of QT. I am trying to ...
0
votes
1
answer
27
views
RowCallBack function for Jquery datatable coloring text and background with ajax returned value from mysql
Need some light on this issue in the attached screenshot. If I entered fixed color value (ie #ffffff for both font and row background) it worked nicely.
However, I want to use the value returned from ...
0
votes
2
answers
64
views
How can a Callable return a value from a predefined void callback?
I am using a data-related API interface which has a key void callback function that is automatically invoked to mark the end of some IO operations. I want to make the class Callable<String> and ...
-2
votes
0
answers
57
views
Can callback to an incompletely constructed Java object be well-defined?
If a constructor of a class T passes this to as an argument to some method foo, and foo immediately performs a callback to the T object (which has not yet finished executing its constructor), things ...
0
votes
0
answers
22
views
Execute array of callbacks with parameters [duplicate]
I'm trying to store callbacks that specify parameters in an array and then execute them sequentially but I don't really understand how to achieve this in JS.
What I want to do:
var callbacks = [
...
0
votes
1
answer
70
views
Setting CpoParameters in docplex CpoCallback does not take effect
When using cplex for modeling and solving, it is desired to reset the solving parameter TimeLimit in the callBack function of cplex. In Java, using cplex for modeling can take effect, but in Python, ...
0
votes
0
answers
56
views
GetRef() in vba throws Compile error: Sub or Function not defined
I just want to use GetRef, didnt work, even in the simplest example:
Why?
Sub CallbackFunction(message As String)
MsgBox "Callback Function Called With Message: " & message
End Sub
...
0
votes
2
answers
96
views
How to call a C++ member method from a C callback function with PipeWire
I am trying to adapt this PipeWire example for use with C++, as I need to carry out various processing in a C++ method. But I am not sure how I can call a C++ member method from the static callback ...