Skip to main content

interface Task.Constructors

Static constructors and root context for Tasks.

Properties​

launch​

Launches a task in the root context. Equivalent to Task.rootContext.launch.

Definition​

launch: Task.Context['launch'];

rootContext​

Returns the root context.

Definition​

get rootContext(): Context;

Methods​

create​

Utility method to wrap a task.

Definition​

create<R = void, A extends readonly any[] = []>(task: Task<R, A>): Task<R, A>;

Type parameters​

NameConstraintsDefaultDescription
Rvoid
Areadonly any[][]

Parameters​

NameTypeDescription
taskTask<R, A>