Async (https://github.com/caolan/async) is a utility module for node.js (although it can also be used in the browser) which provides straight-forward, powerful functions for working with asynchronous JavaScript.
0
votes
0answers
20 views
Dealing with socket.io async get/set calls
I'm trying to interrogate if any of the clients in a room have a particular property associated with them. The async nature of the socket.io get method is causing me problems. I've seen the async ...
1
vote
1answer
56 views
node.js: program either exits unexpectedly or just hangs
I wrote a module in node.js that performs some network operation. I wrote a small script that uses this module (the variable check below). It looks like this:
check(obj, function (err, results) {
...
0
votes
2answers
166 views
Making a synchronous loop from synchronous callbacks with node.js + async module
The popular node.js module async includes functions for collections and control flow which, with versions of some which can be operate in parallel or in series.
But among them I cannot find a way to ...
0
votes
1answer
110 views
Using nodejs async to process a large xml file (with relationships)
I have to process a large XML file (around 25 mb in size), and organize the data into documents to import into MongoDB.
The issue is, there are around 5-6 types of elements in the xml document, each ...
3
votes
1answer
257 views
handling error in async waterfall with expressjs
I don't see why expressjs don't handle error when it's throw in async.waterfall
var express = require('express')
, app = express.createServer()
, async = require('async');
...
0
votes
2answers
86 views
Async parallel bug?
Here I'm trying to make an array of functions with arguments to Async.js.
The array consists of instances of RunRequest that are supposed to be set inside the loop in MakeRequest, right before I try ...
0
votes
3answers
440 views
Async.js Parallel Callback not executing
I'm working with the parallel function in Async.js and for some reason the final call back is not getting executed and I do not see an error happening anywhere.
I'm dynamically creating an array of ...
3
votes
1answer
356 views
Is there an equivalent statement to 'continue' when using node.js async forEachSeries?
I am using the node.js async package, specifically forEachSeries, to make a series of http requests based on parameters drawn from an array. In the callback of each request I have some if/else ...
0
votes
3answers
827 views
Cannot use “map” function within async module
I am using node.js "async" module and need to use the "map" method.
Basically I have an array that contains other arrays. The inner arrays contains 2 elements, a type and an image filename.
var ...
2
votes
1answer
592 views
Using async module to fire a callback once all files are read
I'm using caolan's 'async' module to open an array of filenames (in this case, template file names).
Per the documentation, I'm using async.forEach(),so I can fire a callback once all operations have ...
0
votes
1answer
922 views
The “err” argument when using Async waterfall in node.js
I am trying to execute a series of functions, each passing the callback to the next. Right now it looks like this (excuse any minor errors, I am rewriting it as I post!):
function func1(callback) {
...