Socket
Socket
Sign inDemoInstall

parallel-loop

Package Overview
Dependencies
0
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    parallel-loop

Loop parallelly


Version published
Weekly downloads
463
decreased by-6.65%
Maintainers
1
Install size
51.0 kB
Created
Weekly downloads
 

Readme

Source

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

Keywords

FAQs

Last updated on 18 Mar 2018

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc