ChannelResult!T — the received value, or a ChannelError
payload with ChannelErrorReason.CLOSED if the channel is closed and empty.
ChannelResult!T blockingReceive() @trustedReceive a value from the channel, blocking if empty.
Warning: This method blocks the calling thread using a mutex. Never call from an event-loop thread. Use tryReceive instead for non-blocking operation.
ChannelResult!T — the received value, or a ChannelError
payload with ChannelErrorReason.CLOSED if the channel is closed and empty.
ChannelResult!T blockingReceive(CancelToken token) @trusted