ChannelStatus.OK if a value was received,
ChannelStatus.CLOSED if the channel is closed and empty.
ChannelStatus blockingReceive(out T value) @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.
value | Output parameter to store the received value. |
ChannelStatus.OK if a value was received,
ChannelStatus.CLOSED if the channel is closed and empty.
ChannelStatus blockingReceive(out T value, CancelToken token) @trusted