A channel that holds up to capacity values, made with context.allocator.
- capacity: how many values it holds before
sendblocks. 0 makes a send wait for a receive.
make_channel :: ($T: Type, capacity := 0) -> *Channel(T)
A channel that holds up to capacity values, made with context.allocator.
Parameters
- $T: Type
- capacity := 0
- how many values it holds before
sendblocks. 0 makes a send wait for a receive.
Returns
- *Channel(T)