🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

asynchronous-loop

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

asynchronous-loop

Adds async loop ability to async package

latest
Source
npmnpm
Version
1.0.1
Version published
Weekly downloads
5
-28.57%
Maintainers
1
Weekly downloads
 
Created
Source

async-loop

Adds asynchronous version of javascript loop functionality to caolan/async.

Installation

npm install wiggzz/async-loop

Usage

var asyncLoop = require('async-loop');

var count = 0;
asyncLoop(function(_break,_continue) {
  if(++count > 2) {
    _break();
  } else {
    _continue();
  }
}, function() {
  console.log('Looped ' + count + ' times.');
});

// output:
// Looped 3 times.

FAQs

Package last updated on 12 Feb 2016

Did you know?

Socket

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