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
1 answer

How to pass parameter to callback function.

Here is my code. How to get value of for loop inside the callback function. I need to access gradableGBItems[i].Title inside the callback for(var i=0; i < gradableGBItems.length ; i++) { …
0
votes
0 answers

iOS to execute a callback on a modified object in memory

I am not sure if this is even possible within the realm of iOS and Objective-C, but, being able to do this would simplify so so much... I would like to be able to execute one (or more) actions called by @selector or similar way, whenever an NSObject…
geekyaleks
  • 1,281
  • 3
  • 18
  • 29
0
votes
0 answers

how to provide wait indicator while producing large csv file

Please cross referrence to devexpress forum In ASP.NET WEBFORMS project how do you upon a user clicking a devexpress button and callback control, AFTER HAVING generated the csv stream, push the stream to the browser via the Response object BUT NOT…
dannyrosalex
  • 1,794
  • 4
  • 16
  • 25
0
votes
1 answer

Array to .when() and callback when scripts are loaded in DOM

I am working on asynchronous calls with $.getScript which will load the scripts I need for specific pages. I grab the scripts via an AJAX call to get the scripts I need and then load them in order with the $.when function, I am not sure why the…
MacMac
  • 34,294
  • 55
  • 151
  • 222
0
votes
1 answer

Exceptions after AsyncCallback

I'm having problems with an AsyncCallback function. I'm using one to download data, and then whatever I do after that, it throws a different exception. Some code: private void downloadBtn_Click(object sender, RoutedEventArgs e) { string fileName…
AllFallD0wn
  • 551
  • 7
  • 23
0
votes
1 answer

Cannot read property 'length' of undefined in node_redis hgetall function

I have the following code generating the error: leagueclient.hgetall userLeagueKey, getLeagueInfo I've verified that the key is correct, and getLeagueInfo executes correctly with the correct return value, but in between I get the Cannot read…
0
votes
2 answers

AsyncCallBack - Does it have to be static / Does it have to return void?

My question is fairly simple, but I suspect the answer won't be. In my WP7 app, I am calling a REST web service to GET some data which I deserialize into class objects. My request method and its AsyncCallBack method live inside a class (an MVVM…
Andrew B Schultz
  • 1,512
  • 1
  • 23
  • 41
0
votes
2 answers

Why is list Empty?

I am able to access the list (ListData) value from within its class, but if I try to reference the list from outside of the class, it shows it as an empty list. I add objects to ListData in the getVideoList method. I added this piece of code and it…
Fabii
  • 3,820
  • 14
  • 51
  • 92
0
votes
1 answer

GWT AsyncCallback - inner class sharing

I have an array, premisasObtenidas, that I want to update with the contents that I get from a GWT AsyncCallback. The call works fine, and the code of onSuccess executes, but when I try to add what it returns to premisasObtenidas to return it on my…
andandandand
  • 21,946
  • 60
  • 170
  • 271
0
votes
2 answers

Problems with AsyncCallback in GWT

Hi, I'm beginner in gwt programming and I have depared with a problem with this AsyncCallback well my code is like this: But when I call this method it returns the list before the Callback can make up the list. `public static ArrayList
gmlyra
  • 71
  • 1
  • 8
0
votes
1 answer

Async utility for Node.js Call back function not executing

I am trying to use the async utility for the node.js. Below is my code. The console prints "In my func1" and "In my func2". I also expect it to print "call back func" but it won'nt var myfunc1 = function(callback) { var a = 1; console.log ("In my…
mu_sa
  • 2,685
  • 10
  • 39
  • 58
0
votes
2 answers

Can't run GWT ServiceAsync

I am trying to create a asyncallback to return a list with all the customers from a GAE JDO database in app-engine. I have done a login class that works well but only returns a string. Now I am trying to get a List but I have the errors that come…
Lucky
  • 111
  • 2
  • 14
0
votes
2 answers

how to async callback a recursive function in WCF?

Introduction: I have a Server [WCF service library] and Client [Winform], client connects to server using netTcpBinding. the server job is to share Computer Files to the client with a file manager features { New Folder,Move,Copy,Delete,Properties,…
Murhaf Sousli
  • 12,622
  • 20
  • 119
  • 185
-1
votes
0 answers

[IOException: There is not enough space on the disk

**[IOException: There is not enough space on the disk. # callback, Object state) +1262 ontrollers.LanguageController.BeginExecuteCore(AsyncCallback callback, Object state) +1262 System.Web.Mvc.Async.WrappedAsyncResultBase1.Begin(AsyncCallback…
-1
votes
3 answers

Why does my function not wait for Promise to resolve?

checkout.ts renderButton(){ renderShadowDomButton(); let globalValue = getGlobalValue() } web_component_render.ts let globalValue; async asyncFunction() { let booleanFromAsync = await someExternalAPICall(); return booleanFromAsync;…