Table of Contents

Method WaitUntil

Namespace
Anvil.API
Assembly
NWN.Anvil.dll

WaitUntil(Func<bool>, CancellationToken?)

Waits until the specified expression returns true.

public static Task WaitUntil(Func<bool> test, CancellationToken? cancellationToken = null)

Parameters

test Func<bool>

The test expression.

cancellationToken CancellationToken?

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

Returns

Task