ChannelStatus — success, or a ChannelError payload:
ChannelErrorReason.WOULD_BLOCK if the channel is full, ChannelErrorReason.CLOSED if the channel has been closed.
ChannelStatus trySend(T value) @trustedTry to send a value without blocking.
value | The value to send. |
ChannelStatus — success, or a ChannelError payload:
ChannelErrorReason.WOULD_BLOCK if the channel is full, ChannelErrorReason.CLOSED if the channel has been closed.
ChannelStatus trySend(T value, CancelToken token) @trusted