onSend

abstract val onSend: SelectClause2<E, SendChannel<E>> (source)

Clause for select expression of send suspending function that selects when the element that is specified as 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 exception if the channel isClosedForSend (see close for details).