Channel.blockingReceive

ChannelResult!T blockingReceive() @trusted

Receive 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.

Returns

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