Table of Contents

Method WaitUntilValueChanged

Namespace
Anvil.API
Assembly
NWN.Anvil.dll

WaitUntilValueChanged<T>(Func<T>, CancellationToken?)

Waits until the specified value source changes.

public static Task WaitUntilValueChanged<T>(Func<T> valueSource, CancellationToken? cancellationToken = null)

Parameters

valueSource Func<T>

The watched value source.

cancellationToken CancellationToken?

A cancellation token that should be used to cancel the work.

Returns

Task

Type Parameters

T