ChannelUnbounded.tryReceive

ChannelResult!T tryReceive() @trusted

Try to receive without blocking.

Parameters

valueOutput parameter for the received value.

Returns

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
No documentation available for this declaration.