Channel.receive

ChannelStatus receive(out T value) @trusted

Receive a value from the channel, blocking if empty.

Parameters

valueOutput parameter to store the received value.

Returns

ChannelStatus.SUCCESS if a value was received,

ChannelStatus.CLOSED if the channel is closed and empty.