Io module

try_recv

procedure · 1 overloadSource

A recv that gives up instead of blocking: the value and whether there was one.

try_recv :: (channel: *Channel($T)) -> (T, bool)

A recv that gives up instead of blocking: the value and whether there was one.

Parameters

channel: *Channel($T)

Returns

T
bool

See also