Table of Contents

Method Delay

Namespace
Anvil.API
Assembly
NWN.Anvil.dll

Delay(TimeSpan, CancellationToken?)

Waits until the specified amount of time has passed.

public static Task Delay(TimeSpan delay, CancellationToken? cancellationToken = null)

Parameters

delay TimeSpan

How long to wait.

cancellationToken CancellationToken?

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

Returns

Task