Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
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
  • npm
  • Socket score

Version published
Weekly downloads
321
decreased by-13.01%
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

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

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc