0.0.0-alpha.5 • Published 4 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
4 years ago
0.0.0-alpha.4
4 years ago
0.0.0-alpha.5
4 years ago
0.0.0-alpha.2
4 years ago
0.0.0-alpha.1
4 years ago