Skip to content

DurableTaskReference<TResult>.IsCompletedAsync(PollingOptions, CancellationToken)

IsCompletedAsync(PollingOptions, CancellationToken)

View source
public Task<bool> IsCompletedAsync(PollingOptions options = default(PollingOptions), CancellationToken cancellationToken = default(CancellationToken))
Polls the task and returns whether it is terminal.

Parameters

optionsPollingOptions
The options of the poll.
cancellationTokenCancellationToken
A token which abandons the poll.

Exceptions

Orleans.Durable.Tasks.DurableTaskNotFoundException
The grain retains no task with this identifier.