The promise to cancel.
Optional
signal: CancelSignalA signal to cancel the promise.
Optional
cancelledError: ErrorAn optional error to use when the promise is cancelled. If not provided,
a DurableTaskCancelledError
will be used. If the error is a DurableTaskError
, it will be
returned as is, otherwise a DurableTaskCancelledError
will be created with the error message.
A promise that will be rejected with a DurableTaskCancelledError
if the signal is
cancelled.
Create a cancellable promise. If a signal is provided, the promise will be rejected with a
DurableTaskCancelledError
if the signal is cancelled.