@@ -124,6 +124,8 @@ public sealed interface SelectBuilder<in R> {
124
124
* 4) the function that specifies how the internal result provided via
125
125
* [SelectInstance.trySelect] or [SelectInstance.selectInRegistrationPhase]
126
126
* should be processed in case of this `select` cancellation while dispatching.
127
+ *
128
+ * @suppress **This is unstable API, and it is subject to change.**
127
129
*/
128
130
@InternalCoroutinesApi
129
131
public sealed interface SelectClause {
@@ -138,6 +140,8 @@ public sealed interface SelectClause {
138
140
* the specified clause object. In case of channels, the registration logic
139
141
* coincides with the plain `send/receive` operation with the only difference that
140
142
* the `select` instance is stored as a waiter instead of continuation.
143
+ *
144
+ * @suppress **This is unstable API, and it is subject to change.**
141
145
*/
142
146
@InternalCoroutinesApi
143
147
public typealias RegistrationFunction = (clauseObject: Any , select: SelectInstance <* >, param: Any? ) -> Unit
@@ -147,6 +151,8 @@ public typealias RegistrationFunction = (clauseObject: Any, select: SelectInstan
147
151
* or [SelectInstance.trySelect] should be processed. For example, both [ReceiveChannel.onReceive] and
148
152
* [ReceiveChannel.onReceiveCatching] clauses perform exactly the same synchronization logic,
149
153
* but differ when the channel has been discovered in the closed or cancelled state.
154
+ *
155
+ * @suppress **This is unstable API, and it is subject to change.**
150
156
*/
151
157
@InternalCoroutinesApi
152
158
public typealias ProcessResultFunction = (clauseObject: Any , param: Any? , clauseResult: Any? ) -> Any?
@@ -156,6 +162,8 @@ public typealias ProcessResultFunction = (clauseObject: Any, param: Any?, clause
156
162
* or [SelectInstance.selectInRegistrationPhase], should be processed in case of this `select`
157
163
* cancellation while dispatching. Unfortunately, we cannot pass this function only in [SelectInstance.trySelect],
158
164
* as [SelectInstance.selectInRegistrationPhase] can be called when the coroutine is already cancelled.
165
+ *
166
+ * @suppress **This is unstable API, and it is subject to change.**
159
167
*/
160
168
@InternalCoroutinesApi
161
169
public typealias OnCancellationConstructor = (select: SelectInstance <* >, param: Any? , internalResult: Any? ) ->
0 commit comments