Questions tagged [node-async]

Async is a utility module for node.js (although it can also be used in the browser) that provides powerful functions for working with asynchronous JavaScript

Async provides around 20 functions that include the usual 'functional' suspects (map, reduce, filter, each...) as well as some common patterns for asynchronous control flow (parallel, series, waterfall...).

All these functions assume you follow the convention of providing a single callback as the last argument of your async function.


Documentation :

185 questions
-1
votes
2 answers

Express with node

I'm trying to return some rows from a db, connection works fine and everything but when express calls the function that retrieves the data it doesn't wait for the response. I've tried many ways to write a callback to no avail, I've even tried using…
Artemio Ramirez
  • 1,116
  • 1
  • 10
  • 23
-1
votes
1 answer

Memory leak using mongodb (and cheerio, request, and async.js)

I am on scraping actions on nodejs, I am using request to connect to site, cheerio to access to the data and mongodb to store the data extracted. Also I am using async.js to avoid infinite recursion. I have got a memory problem because my process…
-1
votes
1 answer

Sync http request in Node

I'm new to node and I'm trying to figure out the callbacks and the async nature of it. I have this kind of function: myObj.exampleMethod = function(req, query, profile, next) { // sequential instructions var greetings = "hello"; var…
Leonardo
  • 4,046
  • 5
  • 44
  • 85
-1
votes
3 answers

How to add two function as callback in node?

How can I callback two function in node? For example: request('http://...',[func1,func2]) Is there any module for that?
Aminadav Glickshtein
  • 23,232
  • 12
  • 77
  • 117
-3
votes
1 answer

check null or undefined value for array?

I have an array in the following format and i have to check whether there is any null or undefined value [{ "categoryName": "A", "product": [{ "catogoryName": "A", "price": "10", "productName": "a" …
midhun k
  • 1,032
  • 1
  • 15
  • 41
1 2 3
12
13