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, ...
6
votes
1
answer
893
views
Bottlenecks in asynchronous JavaScript code for Google Map
I'm working on a pothole map web app in Google Apps Script. The map gets its data from a Google spreadsheet (from manual surveying), which is then transformed via hits to the Geolocation and Google ...
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
0
answers
105
views
React - Higher Order Component
My first go at a Higher Order Component in react.
Aims to give a component the ability to call an url repeatedly with a given refresh interval.
Seems to be working as I want. I'm not 100% confident ...
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:
...
5
votes
1
answer
177
views
Based on a file containing people's names, output some statistics and generate some modified names
Noobie here. I applied for a job as a Jr. engineer and they gave me this task. After they read through my solution they rejected my application because the code was hard to follow. I'd like to get an ...
2
votes
0
answers
612
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 ...
2
votes
1
answer
523
views
Handling callbacks when doing async programming and dealing with scope
I'm using HapiJS to create a little backend for my side-project. In grabbing RSS feeds, I want to loop through my list of website URLs, grab the correct RSS links in the ...
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 ...