Channel.send() method
send a value to channel.
if the channel has reached its capacity, then call to send
will be blocked
Signature:
send(value: T): Promise<void>;
Parameters
Parameter | Type | Description |
---|---|---|
value | T |
Returns:
Promise<void>
Exceptions
-Channel.ClosedChannelError throw if channel is closed