Channel.trySend

ChannelStatus trySend(T value) @trusted

Try to send a value without blocking.

Parameters

valueThe value to send.

Returns

ChannelStatus.SUCCESS if the value was sent,

ChannelStatus.WOULD_BLOCK if the channel is full, ChannelStatus.CLOSED if the channel has been closed.