Constructors
constructor
- new AsyncFifoQueue<T>(ignoreErrors?): AsyncFifoQueue<T>
Parameters
- ignoreErrors: boolean = false
Methods
add
- add(promise): void
Returns void
fetch
- fetch(): Promise<void | T>
Returns Promise<void | T>
numPending
- numPending(): number
Returns number
numQueued
- numQueued(): number
Returns number
numTotal
- numTotal(): number
Returns number
waitAll
- waitAll(): Promise<void>
Returns Promise<void>
AsyncFifoQueue
A minimal FIFO queue for asynchronous operations. Allows adding asynchronous operations and consume them in the order they are resolved.