Skip to content

Receiver[T]

Receives values from a channel. As an Iter, it can be used with for or next().

Receivers are returned by channel. Once the channel is closed and drained, next() raises IterStop; a sender error is re-raised after any buffered values are drained.

Inherits from: std.Iter[T]

Methods

close()

Closes the receiver. This prevents any more values from being sent and wakes up any waiting senders.