Method WaitUntilValueChanged
WaitUntilValueChanged<T>(Func<T>, CancellationToken?)
Waits until the specified value source changes.
public static Task WaitUntilValueChanged<T>(Func<T> valueSource, CancellationToken? cancellationToken = null)
Parameters
valueSourceFunc<T>The watched value source.
cancellationTokenCancellationToken?A cancellation token that should be used to cancel the work.
Returns
Type Parameters
T