You can add your async task to promise queue in dynamic . It's easy and effective .
A shim for the setImmediate efficient script yielding API
A simple tool to keep requests to be executed in order.
High-priority task queue for Node.js and browsers
High-priority task queue for Node.js and browsers
Promise-based queue
Fast, in memory work queue
In memory queue system prioritizing tasks
Offload tasks to a pool of workers on node.js and in the browser
fast, tiny `queueMicrotask` shim for modern engines
Promise queue with concurrency control
A promise queue, task queue with concurrency control, and retryable utility
Call an array of promise-returning functions, restricting concurrency to a specified limit.
A lightweight task queue
A simple, dependency-free library for concurrent promise-based queues. Comes with with concurrency and timeout control.
Useful TypeScript utilities.
asynchronous function queue with adjustable concurrency
Task and Message Queues with Multiple Providers
Promise queue with a nice API
wrapper around async.queue to make some common usages simpler
Tiny queue data structure
support for asynchronous development with a Promise based task Scheduler, several different Promise implementations (synchronous, idle, asynchronous and native runtime wrappers), await helpers, and aliases all built and tested using TypeScript.
Evaluate asynchronous tasks with configurable concurrency.
celery written in nodejs