Latest Threat ResearchGlassWorm Loader Hits Open VSX via Developer Account Compromise.Details
Socket
Book a DemoInstallSign in
Socket

foyer

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

foyer

Parallel async functions

Source
npmnpm
Version
0.0.0
Version published
Weekly downloads
3
Maintainers
1
Weekly downloads
 
Created
Source

foyer

NPM version build status Test coverage Execute async functions in parallel and trigger a callback when done.

Installation

$ npm i --save foyer

Example

var foyer = require('foyer');

function callback(err, res) {
  return res;
  // => ['myRes2', 'myRes']
}

foyer([
  function(done) {setTimeout(function(){end('myError', 'myRes');}, 10)}, 
  function(done) {end('myError2', 'myRes2')}
], callback);

API

foyer([functions], callback)

var tasks = [
  function(done){done(null, 'hello')}, 
  function(done){done(null, 'world')}
];
var cb = function(err, res){return res};

foyer(tasks, cb);
// => ['hello', 'world']

License

MIT © Yoshua Wuyts

Keywords

async

FAQs

Package last updated on 15 Jun 2014

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