Socket
Book a DemoInstallSign in
Socket

async-promises

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

async-promises

Async control flow patterns using promises based on https://github.com/caolan/async

0.2.3
latest
Source
npmnpm
Version published
Weekly downloads
612
48.54%
Maintainers
1
Weekly downloads
 
Created
Source

async-promises Build Status

NPM

Async control flow patterns using promises based on https://github.com/caolan/async

It needs an ES6 environment to work (Promises, Block-scoped binding constructs, etc) like modern browsers and node 4.

Example:

var asyncP = require('async-promises');

var args = [];
return asyncP.each([1, 3, 2], (x) => {
  return new Promise(function(resolve) {
    setTimeout(() => {
      args.push(x);
      resolve();
    }, x * 25);
  });
})
.then(() => {
  console.log(args); //prints [1, 2, 3]
});

Roadmap

  • Collections
  • each
  • eachSeries
  • map
  • mapSeries
  • filter
  • filterSeries
  • reduce
  • reduceRight
  • some
  • every
  • Control Flow
  • series
  • parallel
  • waterfall
  • retry
  • times
  • timesSeries

Keywords

async

FAQs

Package last updated on 16 Jul 2020

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

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.