ChannelStatus.OK if the value was sent successfully,
ChannelStatus.CLOSED if the channel has been closed.
ChannelStatus blockingSend(T value) @trustedSend a value into the channel, blocking if the channel is full.
Warning: This method blocks the calling thread using a mutex. Never call from an event-loop thread. Use trySend instead for non-blocking operation.
value | The value to send. |
ChannelStatus.OK if the value was sent successfully,
ChannelStatus.CLOSED if the channel has been closed.
ChannelStatus blockingSend(T value, CancelToken token) @trusted