ValueSnapshot<T>.GetValueAsync(CancellationToken) Method

Definition

Await the current value:

  • If a value has already been set, returns it immediately.
  • If an exception has been set, throws it.
  • Otherwise waits until the first value or exception is set. Always returns the latest value at the moment of completion or throws the exception.
public System.Threading.Tasks.Task<T> GetValueAsync(System.Threading.CancellationToken cancellationToken = default);
member this.GetValueAsync : System.Threading.CancellationToken -> System.Threading.Tasks.Task<'T>
Public Function GetValueAsync (Optional cancellationToken As CancellationToken = Nothing) As Task(Of T)

Parameters

cancellationToken
CancellationToken

Returns

Task<T>

Applies to