ChannelDynamic.trySend

ChannelStatus trySend(T value) @trusted

Try to send without blocking.

Parameters

valueThe value to send.

Returns

ChannelStatus — success, or a ChannelError payload:

ChannelErrorReason.WOULD_BLOCK if at max capacity, ChannelErrorReason.CLOSED if closed.

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