@ovos-media/simple-promise-queue
v1.0.12
Published
A simple promise queue helper with concurrency settings.
Downloads
852
Keywords
Readme
simple-promise-queue
easily make your async functions queueable!
import queueable from '@ovos-media/simple-promise-queue';
// just wrap your function to control execution sequence!
const queueableAsyncFunction = queueable(
asyncFunction,
{ concurrency: 1 }
);
// or as a decorator!
@queueable async function() {
return request(...);
}
Maintainers
ovos media gmbh, @ovos, Visit us!
License
MIT