Skip to content

IScheduledTaskHandle.CancelAsync(string?, CancellationToken)

CancelAsync(string?, CancellationToken)

abstract
View source
public abstract ValueTask CancelAsync(string? reason, CancellationToken cancellationToken)
Durably requests task cancellation carrying reason. The request is monotonic and idempotent. The token abandons waiting for acknowledgement.

Parameters

reasonstring?
The reason which the task's DurableTaskContext reports, or null for none.
cancellationTokenCancellationToken
A token which abandons waiting for the request to commit.