send (Function)

Signature: send(channel: Channel<t0>, value: t0) -> Unit

Description: Blocks while the channel is full, then sends a value and returns Unit.

Parameters

  • channel (Channel): The channel to send to
  • value (t0): The value to send

Returns: Unit

Example

send(ch, 42)
send ch 42