Questions tagged [async.js]
A module with functions for working asynchronously with JavaScript that can be used both in NodeJS and in the browser.
9 questions
3
votes
1
answer
1k
views
NodeJS executing multiple database queries using async library
I have a use case where I need to run multiple tasks in series. Each task is required to perform some database operations. In my code step_1, ...
0
votes
1
answer
102
views
Traversing through single large array to convert single array into array of arrays as per condition
I have a huge fileList array where many elements of array start from sub-** pattern. I want to group these files belonging to ...
2
votes
1
answer
2k
views
async.waterfall call
Does anyone have any recommendations for how I could make this async.waterfall call neater? Ideally I'd be able to do something like:
...
2
votes
0
answers
613
views
Saving parsed CSV data to MongoDB
I wrote a script for reading a CSV, parsing it and saving data to MongoDB. I would love some input on how I'm handling errors and dealing with callbacks. I wrote it with nested without using async and ...
6
votes
2
answers
1k
views
Shorten my asynchronous DB queries, using async.js module
I am using the following frameworks/libraries:
Node.js
Express.js
node-mysql.js
async.js
I am making multiple asynchronous queries to my DB, but each subsequent query relies on the results of the ...