interface Task.Job<R>
Represents a running Task that can be joined or cancelled.
Type parameters
| Name | Default | Description |
|---|---|---|
| R | void | undocumented |
Properties
join
Waits for the job to finish, and returns the result if available. If the job is already completed, returns the result immediately. If the job is cancelled, throws a CancellationError unless a recover function is provided.
joinDefinition
join: <RT = never>(options?: {
timeoutMs?: number;
recover?: (error?: unknown) => RT;
}) => Promise<R | RT>;