Questions tagged [async.js]

A module with functions for working asynchronously with JavaScript that can be used both in NodeJS and in the browser.

Async is a utility module which provides straight-forward, powerful functions for working with . Although originally designed for use with , it can also be used directly in the browser.

Resources

1009 questions
-3
votes
2 answers

Use setTimeout inside another setTimeout function in javascript

I'm having this code :- var i = 3 var p = Promise.resolve(i) while (i > 0) { (i => { p = p.then(() => { return new Promise(function (resolve, reject) { console.log('start', i) …
Ketan Bodarya
  • 21
  • 1
  • 7
-3
votes
2 answers

Nodejs best way for synchronous execution?

What is the best way for synchronous execution when working with external modules? I would like the output to result in: Setp 1: Hello Setp 2: Hej Step 3: Hola Step 4: Bonjour Example: //File: main.js var greetings =…
-3
votes
1 answer

Doing something right after a for loop

As you know, NodeJS is asynchronous. But it's a bit disapointing. For example, as long as i understood, a condition will be synchronous while loop will be asynchronous. My question is how to wait a for loop end ? I've heard about async.js but i…
Little squirrel
  • 29
  • 2
  • 11
-5
votes
2 answers

getting async nodejs value from each callback calls

var async = require('async'); var square = function (id, callback) { Business.prototype.getBusinessUser(id,function(userObject){ return callback(userObject); }); }; async.eachSeries(findBusinessResult, function (businessObject, callback)…
Develop4Life
  • 7,581
  • 8
  • 58
  • 76
1 2 3
67
68