OptionalconcurrencyMaximum number of concurrently running workers. Values less than 1 are clamped to 1.
OptionalfallbackFallback value/provider used when the task rejects. Receives the original error and whether it was caused by cancellation.
OptionalnameOptional name for tracing and diagnostics
OptionalonCallback invoked when the task is cancelled. Receives the resolved CancelError.
OptionalonCallback invoked right before waiting for a retry attempt.
OptionalretryRetry configuration for the task
OptionalsignalOptional external abort signal. Aborting it cancels the queue.
OptionalstartIf true, the queue starts in paused mode and will not
process tasks until resume() is called.
OptionaltimeoutTimeout in milliseconds. The task will be automatically cancelled
after this duration, with the cancel reason set to a string in the
form "{label} timeout after {timeout}ms".
Configuration for
queue().