abstract val onSend: SelectClause2<E, SendChannel<E>>
Content copied to clipboard
Clause for the select expression of the send suspending function that selects when the element that is specified as the parameter is sent to the channel. When the clause is selected, the reference to this channel is passed into the corresponding block.
The select invocation fails with an exception if the channel is closed for
send (see close for details).