Skip to content

DurableSignal<T>.TryWaitAsync(DateTimeOffset)

TryWaitAsync(DateTimeOffset)

View source
public DurableTask<(bool Received, T Value)> DurableSignal<T>.TryWaitAsync(DateTimeOffset deadline)
Creates a definition which waits for this signal until deadline.

Parameters

deadlineDateTimeOffset
The time, measured using host logical time, at which the wait stops.

Returns

A definition which, awaited within a durable execution, runs as part of that execution and completes with (true, value) when the signal wins the race with deadline, and with (false, default) when the deadline wins.