ChannelStatus.SUCCESS if a value was received,
ChannelStatus.WOULD_BLOCK if the channel is empty, ChannelStatus.CLOSED if the channel is closed and empty.
ChannelStatus tryReceive(out T value) @trustedTry to receive a value without blocking.
value | Output parameter to store the received value. |
ChannelStatus.SUCCESS if a value was received,
ChannelStatus.WOULD_BLOCK if the channel is empty, ChannelStatus.CLOSED if the channel is closed and empty.