Skip to content

IDurableTaskManager.CancelAsync(TaskId, CancellationToken)

CancelAsync(TaskId, CancellationToken)

virtual
View source
public virtual ValueTask CancelAsync(TaskId taskId, CancellationToken cancellationToken = default(CancellationToken))
Durably requests cancellation of a task of this grain and its execution tree.

Parameters

taskIdTaskId
The task identifier.
cancellationTokenCancellationToken
A token which abandons waiting for the request to commit.

Returns

An operation which completes once the cancellation request has committed and propagated.