PromisedQueue.queue method
PromisedQueue › queue
Unofficial
Add a function to the queue and return a promise for its result.Signature:
queue(fn: () => T | Promise<T>): Promise<T>Parameters:
| Parameter | Type | Description |
|---|---|---|
| fn | () => T | Promise<T> | The function to enqueue. |
Returns: Promise<T> — A promise that resolves with the function's result.