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
OptionalsignalExternal AbortSignal to link with the task's cancellation
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".
Options for configuring cancellable task behavior.