Scope
class Scope Import
Source: use task::{Scope}; 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#
| Name | Description |
|---|---|
spawn | Starts body as a child task of this scope and returns its handle. |
See also#
task::scopeScope::spawnTask: A handle to a child task started withScope::spawn.Channel: A bounded queue for passing values between tasks.