Class in task compiler

Scope

class Scope
Import
use task::{Scope};
Source: compiler/src/prelude/task.hy

A running scope, used to start child tasks with spawn.

A Scope only exists inside the body passed to scope, and every task it starts has finished by the time scope returns.

Methods#

NameDescription
spawnStarts body as a child task of this scope and returns its handle.

See also#

↑ ↓ navigate ↵ open