0.0.0-alpha.5 • Published 3 years ago
@ktools/async-queue v0.0.0-alpha.5
@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);
0.0.0-alpha.3
3 years ago
0.0.0-alpha.4
3 years ago
0.0.0-alpha.5
3 years ago
0.0.0-alpha.2
3 years ago
0.0.0-alpha.1
3 years ago