All Questions
5
questions
0
votes
2
answers
69
views
Maintaining state across asynchronous events in javascript
We have a loader which is based on an event listener. This is through pouchdb.
So each time a document is received to the client the listener fires. We check if that document is related to the loader ...
1
vote
1
answer
3k
views
Node Extracting zip file async using callbacks or events?
I have to write a module whose task is to extract a zip file given two parameters (zip file's path, directory where to extract's path) which should expose a method to perform the task and then trigger ...
0
votes
1
answer
139
views
How to I gather all the responses from all emit callbacks?
I have a three-way socket.io project that uses a relay server to emit commands to a hub controller which on a relay emission will emit to all the nodes.
My question is how do I gather all the ...
5
votes
2
answers
2k
views
node.js execute function after 'n' async callback are executed
I can't get how can I execute a callback after 'n' async functions are executed, example:
var after4AsyncOperation = function(){
//do something...
}
process.nextTick(function(){
//do stuff
}...
1
vote
1
answer
945
views
How to stop eventmachine when using multiple requests
I am making batch calls to an API via HTTP using EventMachine and em-http-requests
I am unsure of how stop the event machine with EM.Stop after all the callbacks are complete
Supposing I make 10 ...