Io module

recv

procedure · 1 overloadSource

Takes the oldest value, blocking while the channel is empty. .CLOSED once it is closed and drained, .CANCELED if the fiber is canceled while it waits.

recv :: (channel: *Channel($T)) -> (T, Io_Error)

Takes the oldest value, blocking while the channel is empty. .CLOSED once it is closed and drained, .CANCELED if the fiber is canceled while it waits.

Parameters

channel: *Channel($T)

Returns

T

See also