typealias ProcessResultFunction = (clauseObject: Any, param: Any?, clauseResult: Any?) -> Any?(source)

This function specifies how the internal result, provided via SelectInstance.selectInRegistrationPhase or SelectInstance.trySelect should be processed. For example, both ReceiveChannel.onReceive and ReceiveChannel.onReceiveCatching clauses perform exactly the same synchronization logic, but differ when the channel has been discovered in the closed or cancelled state.