Sequential request queue for Node.js and browsers. No dependencies.
- Requests are executed in the order in which they were queued
- Execution of requests is sequential (not interleaved)
- Supports requests with both sync and async results
npm install @soncodi/reqqueue --save
add<T>(fn: (...args: any) => T|Promise<T>): Promise<T>
Adds a request to the request queue to be executed.