Io module

Channel

structSource

A bounded queue of T between fibers. send blocks while it is full, recv while it is empty. With capacity 0 a send and a receive meet: each waits for the other.

Fields

buffer: *T
capacity: s64
head: s64
count: s64
closed: bool
senders: Waiter
receivers: Waiter
allocator: Allocator

See also