Io module

make_channel

procedure · 1 overloadSource

A channel that holds up to capacity values, made with context.allocator.

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 send blocks. 0 makes a send wait for a receive.

Returns

See also