SelectClause

interface SelectClause(source)

Each select clause is specified with:

  1. the object of this clause, such as the channel instance for SendChannel.onSend;

  2. the function that specifies how this clause should be registered in the object above;

  3. the function that modifies the internal result (passed via SelectInstance.trySelect or SelectInstance.selectInRegistrationPhase) to the argument of the user-specified block.

  4. the function that specifies how the internal result provided via SelectInstance.trySelect or SelectInstance.selectInRegistrationPhase should be processed in case of this select cancellation while dispatching.

Inheritors

Properties

Link copied to clipboard
abstract val clauseObject: Any
Link copied to clipboard
Link copied to clipboard