Method in task · Channel compiler

Channel::send

pub fn send(T value) -> Result<unit, ChannelError>
Import
use task::{Channel};
Source: compiler/src/prelude/task.hy

Adds value to the channel, waiting while it is full (a suspension point).

Called on a Channel value as value.send(…).

Parameters#

NameType
valueT

Returns#

Result<unit, ChannelError>

Errors#

Err(ChannelError::Closed) once the channel is closed.

See also#

↑ ↓ navigate ↵ open