parallel-loop
Loop parallelly
Last updated 9 years ago by greenpioneer .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ npm install parallel-loop 
SYNC missed versions from official npm registry.

npm downloads dependencies npm-issues js-standard-style Build Status js-standard-style

parallel-loop

Async parallel loop.

Install

#NPM
npm install parallel-loop --save
#YARN
yarn add parallel-loop

Usage

const loop = require('parallel-loop')

loop(10, each, function () {
  console.log('end')
})

function each (done, i) {
  setTimeout(function () {
    console.log(i)
    done()
  }, Math.floor(Math.random() * 500))
})

Will output:

3
9
2
5
7
4
1
8
6
end

Current Tags

  • 3.0.0                                ...           latest (9 years ago)

7 Versions

  • 3.0.0                                ...           9 years ago
  • 0.0.1-security                                ...           11 years ago
  • 2.0.0                                ...           11 years ago
  • 0.0.3                                ...           12 years ago
  • 0.0.2                                ...           12 years ago
  • 0.0.1                                ...           13 years ago
  • 0.0.0                                ...           13 years ago
Maintainers (1)
Downloads
Total 18
Today 0
This Week 1
This Month 18
Last Day 0
Last Week 9
Last Month 0
Dependencies (0)
None
Dev Dependencies (3)
Dependents (1)

© 2010 - cnpmjs.org x YWFE | Home | YWFE