1.0.4 • Published 4 years ago
nodejs-async-queue v1.0.4
NodeJS AsyncQueue
AsyncQueue is a simple NodeJS Module for running asynchronous functions in a series using a queue structure
Installation
Use the npm package manager to install AsyncQueue.
npm install nodejs-async-queue --save
Usage
const AsyncQueue = require('nodejs-async-queue');
const asyncQueue = new AsyncQueue(YourFunction);
asyncQueue.add('foo','bar') // adds YourFunction('foo','bar') to queue
asyncQueue.list() // returns the queue list