ChannelResult!T — the received value, or a ChannelError payload:
ChannelErrorReason.WOULD_BLOCK if empty, ChannelErrorReason.CLOSED if closed and empty.
ChannelResult!T tryReceive() @trustedTry to receive a value without blocking.
value | Output parameter for the received value. |
ChannelResult!T — the received value, or a ChannelError payload:
ChannelErrorReason.WOULD_BLOCK if empty, ChannelErrorReason.CLOSED if closed and empty.
ChannelResult!T tryReceive(CancelToken token) @trusted