@ktools/async-queue
v0.0.0-alpha.5
Published
A async queue manager.
Downloads
5
Readme
@ktools/async-queue
A async queue tool.
install
npm i -S @ktools/async-queue
// or
yarn add @ktools/async-queue
use
import AsyncQueue from '@ktools/async-queue';
// or const { AsyncQueue } = require('@ktools/async-queue');
const queue = AsyncQueue.create();
queue.push(async () => {
// do some async actions.
}).then(console.log);
queue.push(async () => {
// do some async actions.
}).then(console.log);