The async tag has no wiki summary.
1
vote
0answers
27 views
Atmosphere + Long Polling : No message distribution?
I'm experiencing a strange behavior with Atmosphere + Long Polling.
I'd like to have a broadcaster per user, so I have registered a broadcaster on resource suspension with id : /user/.
I use ...
-2
votes
2answers
89 views
Calling blocking functions and execute code when result is ready, but without callbacks
I am designing an application that has some scripting capabilities: the host application may call the scripts to perform some operations when some events occur. To keep it easy and newbie-friendly, ...
1
vote
0answers
92 views
How to optimize calls to multiple APIs at once and return as one set?
I have a web app that searches across 2 APIs right now. I have my own Restful web service that I call, and it does all the work on the backend to asynchronously call the 2 APIs and concatenate them ...
6
votes
3answers
640 views
BackgroundWorker vs. Async/Await
I am new to C# development and wish to create a more responsive UI. In my preliminary research, I have seen two methods for achieving this:
Multi-threading in conjunction with the BackgroundWorker ...
5
votes
1answer
161 views
Asynchronously returning a hierarchal data using .NET TPL… what should my return object “look” like?
I want to use the .NET TPL to asynchronously do a DIR /S and search each subdirectory on a hard drive, and want to search for a word in each file... what should my API look like?
In this scenario I ...
0
votes
0answers
128 views
Using Interlocked.Exchange(ref Enum, 1) to prevent re-entrancy [closed]
What options do I have for pending work that can't acquire a lock via the following sample?
System.Threading.Interlocked.CompareExchange<TrustPointStatusEnum>
(ref tp.TrustPointStatus, ...
7
votes
1answer
276 views
Futures/Monads vs Events
In an application framework
when performance impact can be ignored (10-20 events per second at max),
what is more maintainable and flexible to use as a preferred medium for communication between ...
14
votes
5answers
788 views
At what point is asynchronous reading of disk I/O more efficient than synchronous?
Assuming there is some bit of code that reads files for multiple consumers, and the files are of any arbitrary size: At what size does it become more efficient to read the file asynchronously? Or to ...
5
votes
3answers
846 views
When should I use StringBuilder or StringBuffer?
In a production web application, my fellow programmers used StringBuffer everywhere. Now I am taking care of application development and corrections. After reading StringBuilder and StringBuffer I ...
4
votes
1answer
119 views
Asynchronous update design/interaction patterns
These days many apps support asynchronous updates. For example, if you're looking at a list of widgets and you delete one of them then rather than wait for the roundtrip to the server, the app can ...
9
votes
4answers
971 views
How do you keep code with continuations/callbacks readable?
Summary: Are there some well-established best-practice patterns that I can follow to keep my code readable in spite of using asynchronous code and callbacks?
I'm using a JavaScript library that ...
2
votes
2answers
405 views
What's the best practice for async APIs that return futures on Scala?
I have started a project to write an async PostgreSQL driver on Scala and to be async, I need to accept callbacks and use futures, but then accepting a callback and a future makes the code cumbersome ...
4
votes
1answer
227 views
Cross-process asynchronous messages in .NET
(Asking this here instead of SO because I don't even know what technology to tag it with :))
My team is about to embark on a project to convert a large part of our code base to use asynchronous file ...
3
votes
2answers
827 views
How do you work with Asynchronous functions, recursively?
I am currently working on FLEX and have to call a web services. once I have the result, I have to call the web service again, with the previous result as the input.
A compounding problem, is that ...
2
votes
2answers
438 views
How to present asynchronous state change in chart or diagram?
I started to study about state transition chart. As I see, it assumes all state transition is done instantly with no time consuming. But in most of my case, I'm heavily depending on asynchronous I/O, ...