Channel.blockingReceive

ChannelStatus blockingReceive(out T value) @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.

Parameters

valueOutput parameter to store the received value.

Returns

ChannelStatus.OK if a value was received,

ChannelStatus.CLOSED if the channel is closed and empty.

ChannelStatus blockingReceive(out T value, CancelToken token) @trusted
No documentation available for this declaration.