Channel.tryReceive

ChannelResult!T tryReceive() @trusted

Try to receive a value without blocking.

Returns

ChannelResult!T — the received value, or a ChannelError

payload: ChannelErrorReason.WOULD_BLOCK if the channel is empty, ChannelErrorReason.CLOSED if it is closed and empty.

ChannelResult!T tryReceive(CancelToken token) @trusted
No documentation available for this declaration.