ChannelStatus.OK on success, ChannelStatus.WOULD_BLOCK if empty,
ChannelStatus.CLOSED if closed and empty.
ChannelStatus tryReceive(out T value) @trustedTry to receive without blocking.
value | Output parameter for the received value. |
ChannelStatus.OK on success, ChannelStatus.WOULD_BLOCK if empty,
ChannelStatus.CLOSED if closed and empty.
ChannelStatus tryReceive(out T value, CancelToken token) @trusted