Channel.trySend

ChannelStatus trySend(T value) @trusted

Try to send a value without blocking.

Parameters

valueThe value to send.

Returns

ChannelStatus.OK if the value was sent,

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

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