Table of Contents

Method Run

Namespace
Anvil.API
Assembly
NWN.Anvil.dll

Run(Func<Task>)

Queues the specified work to run on the next server cycle.

public static Task Run(Func<Task> function)

Parameters

function Func<Task>

The task to run.

Returns

Task

Run<T>(Func<Task<T>>)

Queues the specified work to run on the next server cycle.

public static Task<T> Run<T>(Func<Task<T>> function)

Parameters

function Func<Task<T>>

The task to run.

Returns

Task<T>

Type Parameters

T