typealias OnCancellationConstructor = (select: SelectInstance<*>, param: Any?, internalResult: Any?) -> (Throwable) -> Unit(source)

This function specifies how the internal result, provided via SelectInstance.trySelect or SelectInstance.selectInRegistrationPhase, should be processed in case of this select cancellation while dispatching. Unfortunately, we cannot pass this function only in SelectInstance.trySelect, as SelectInstance.selectInRegistrationPhase can be called when the coroutine is already cancelled.