Skip to main content

namespace Task

A unit of work that can be executed within a Task Context.

Companion type: Task<R,A>

Interfaces

NameDescription
Task.ChildOptionsundocumented
Task.ConstructorsStatic constructors and root context for Tasks.
Task.ContextRepresents the execution context for Tasks, supporting cancellation, supervision, and child contexts.
Task.Job<R>Represents a running Task that can be joined or cancelled.

Static 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>