ValueSnapshot<T>.GetValueAsync(CancellationToken) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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>