Questions tagged [asynccallback]

A callback is a piece of executable code that is passed as an argument to other code, which is expected to call back (execute) the argument at some convenient time. An asynchronous or deferred callback is invoked after a function returns, or at least on another thread’s stack.

A callback is a piece of executable code that is passed as an argument to other code, which is expected to call back (execute) the argument at some convenient time. An asynchronous or deferred callback is invoked after a function returns, or at least on another thread’s stack.

More Info

457 questions
0
votes
2 answers

How do I prevent Pyro4 from closing the connection after COMMTIMEOUT

I have the following situation; My Pyro4 project has a server and a client. The server contains a method which need to call 2 callbacks on the same callback object. So class Callback has two callback methods: Callback() and SecondCallback(). There…
Arnold Pistorius
  • 522
  • 4
  • 18
0
votes
0 answers

Why Meteor.bindEnvironment is not wrapping callback functions by default?

This question how to use Meteor.bindEnvironment is answered here. My question is Why callback functions are not wrapped by Meteor.bindEnvironment in default? Does it effect performance? (I added this as a comment in the said answer but it remains…
user3218743
  • 579
  • 2
  • 8
  • 28
0
votes
1 answer

Python Pika callback is not working with SelectConnection inside a class

I am trying to create a simple Python Pika SelectConnection and it seems that I am not able to open a connection using the on_open_callback and I don't get anything from te on_open_error_callback either. Can someone suggest what might be causing the…
Tom Kregenbild
  • 1,568
  • 1
  • 10
  • 11
0
votes
1 answer

Update variable outside callback

I'm using facebook SDK for Android. I have a request which has a callback from where I get the response. I have to execute the request a variable number of times depending on the response I get from the request. I'm trying to use a global variable…
Noor
  • 19,638
  • 38
  • 136
  • 254
0
votes
2 answers

Less Obvious Times to Use Node.js Callbacks

I understand callbacks and that you'd want to use it to make functions like timers or lengthy calculations or database queries asynchronous. What are less obvious times/tasks/situations you'd want to use callbacks? Can you give any real world…
Jack Hanna
  • 169
  • 2
  • 3
  • 15
0
votes
0 answers

JavaScript: Return from asynchronous onload callback

I'm currently fixing an existing code to check image minimum dimensions before upload. I'm now getting the proper size of image thanks to new Image() but I can't return the result! Here's the code : _hasError: function (file) { if…
0
votes
1 answer

how to make and AsyncCallback deliver data before next method is called

I have a method that calls 2 services that make AsyncCallBacks centroService.buscarCentroPorNombre(nombreCentroSeleccionado, new AsyncCallback() { @Override …
0
votes
1 answer

Node.js is getting stuck in callbacks

My Code is getting stuck in this function. It goes into a chain of callbacks. Could someone please guide me through it? router.get('/search',function(req, res, next){ //Check/Convert the selected query to MPEG //Color_Analysis.py -d…
No Name
  • 1
  • 1
0
votes
1 answer

Send db-query-result to client

Trying to send results from a node-mysql database query to the client. Code: io.on('connection', function(socket){ socket.on('admin', function() { [...] locations = getUserInfo(function(e,c){...}); [...] …
drhirn
  • 65
  • 8
0
votes
1 answer

mashape unirest java Future HttpResponse asJsonAsync cannot find symbol

I'm a newbie to mashape unirest, and I can't seem to figure out what I'm doing wrong. I'm using maven to use unirest as a dependency, as so: com.mashape.unirest
Jon
  • 7,848
  • 1
  • 40
  • 41
0
votes
0 answers

Add items dynamically in ListBox in GWT

I'm currently developing a GWT application. The fact is my application gets some datas from a database. To do that, I created an AsyncCallback which works well. Indeed, in the OnSuccess() method of my AsyncCallback, I have : @Override public void…
Alexandre D.
  • 711
  • 1
  • 9
  • 28
0
votes
1 answer

Meteor: How to catch asynchronous callback function errors

I'm trying to catch an error that could be thrown in an asynchronous function. I have tried using the fibers package, but after the installation of this package, the app won't start giving this error: => Errors prevented startup: While building…
Hans Vn
  • 787
  • 1
  • 16
  • 32
0
votes
0 answers

How to create a web service in java with Reply To parameter

Hi I am working with a REST web services in java and I am looking for a solution for handling the reply of the service. I want if client call the service it will pass another URL to the REST service so that it will automatically reply to that…
Utsav
  • 1,593
  • 4
  • 22
  • 46
0
votes
1 answer

Nested Callback of Asynchronous Web Service

I am currently using SOAP Web Service in my iOS app using Xamarin C#. I want to have a nested callback to continue execution on Main UI Thread. Here's the example: [WebService Method] WSMethod(param A){ //do something } class A { …
yonasstephen
  • 2,645
  • 4
  • 23
  • 48
0
votes
0 answers

Chrome onMessage listener can not sendResponse inside chrome.storage.local 'get' callback

Here is most of my background.js code var DataProcessor; DataProcessor = (function() { DataProcessor.prototype.coursesHolder = {}; function DataProcessor() { chrome.runtime.onMessage.addListener((function(_this) { return function(request,…