async-queue

0.1.0 • Public • Published

AsyncQueue

Build Status

Installation

npm install async-queue

Example

var AsyncQueue = require('async-queue');

new AsyncQueue(function (err, job) {
	if (err) job.fail(err);
	setTimeout(function () {
		console.log('First job executed')
		job.success();
	}, 500);
}, function (err, job) {
	console.log('Second job executed');
	job.success();
}).run();

Output

First job executed
Second job executed

Run Tests

npm install
npm test

Dependencies (0)

    Dev Dependencies (2)

    Package Sidebar

    Install

    npm i async-queue

    Weekly Downloads

    87

    Version

    0.1.0

    License

    none

    Last publish

    Collaborators

    • martinj