Skip to content

DurableTaskReference<TResult>.GetResponseAsync(PollingOptions, CancellationToken)

GetResponseAsync(PollingOptions, CancellationToken)

View source
public Task<DurableTaskResponse> GetResponseAsync(PollingOptions options, CancellationToken cancellationToken = default(CancellationToken))
Waits for the task's terminal response, polling with options.

Parameters

optionsPollingOptions
The options of each poll.
cancellationTokenCancellationToken
A token which abandons the wait. It doesn't cancel the task.

Exceptions

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