Options.
OptionalmaxConcurrentRequests?: numberThe maximum number of concurrent requests.
Gets whether the object is currently performing an asynchronous operation.
Returns the percentage of progress, in normalized value (i.e in the [0, 1] range), of the asynchronous operations that are scheduled to run on this object. 1 means that all operations have finished.
Enqueues a request. If a request with the same id is currently in the queue, then returns the promise associated with the existing request.
Options.
The unique identifier of this request.
Optionalpriority?: numberThe priority of this request.
The request.
OptionalshouldExecute?: () => booleanThe optional predicate used to discard a task: if the function returns false,
the task is not executed.
Optionalsignal?: AbortSignalThe abort signal.
A promise that resolves when the requested is completed.
A generic priority queue that ensures that the same request cannot be added twice in the queue.