Skip to main content

TASK

Constant TASK 

Source
pub const TASK: BuiltinSchema;
Expand description

Task<T>: the handle scope.spawn { ... } hands back.

cancel only asks. A cancelled task stops at its next safepoint, and whether it stopped or had already finished is known only once something waits for it.