Channel::is_closed
pub fn is_closed() -> bool Import
Source: use task::{Channel}; compiler/src/prelude/task.hy Returns true once close has been called.
Called on a Channel value as value.is_closed(…).
Returns#
bool
See also#
Channel::closeChannel: A bounded queue for passing values between tasks.Channel::send: Addsvalueto the channel, waiting while it is full (a suspension point).Channel::try_send: Addsvalueif there is room, without waiting.Channel::recv: Takes the oldest value, waiting while the channel is empty (a suspension point).Channel::try_recv: Takes the oldest value if there is one, without waiting.Channel::len: Returns the number of values waiting to be received.Channel::capacity: Returns the most values the channel can hold.