@ao-framework/queue
v0.0.1
Published
Queue is a library for managing sequential promises in a bound or unbound haltable queue.
Downloads
23
Readme
Queue is a library for managing sequential promises in a bound or unbound haltable queue.
Install
npm install @ao-framework/queueImport
import Queue from "@ao-framework/queue"Usage
let queue = new Queue(100);
queue.push(() => {
return Promise.resolve().catch(err => {})
}).catch(err => {
//max exceeded
})