recv (Function)

Signature: recv(channel: Channel<t0>) -> t0

Description: Blocks while the channel is empty, then receives its oldest value.

Parameters

  • channel (Channel): The channel to receive from

Returns: t0

Example

let value = recv(ch)
value = recv ch