File tree Expand file tree Collapse file tree 5 files changed +10
-4
lines changed
common/kotlinx-coroutines-core-common/src Expand file tree Collapse file tree 5 files changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -231,6 +231,7 @@ public fun CancellableContinuation<*>.removeOnCancel(node: LockFreeLinkedListNod
231
231
* Removes a given node on cancellation.
232
232
* @suppress **This is unstable API and it is subject to change.**
233
233
*/
234
+ @InternalCoroutinesApi
234
235
public fun CancellableContinuation <* >.removeOnCancellation (node : LockFreeLinkedListNode ) =
235
236
invokeOnCancellation(handler = RemoveOnCancel (node).asHandler)
236
237
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ import kotlin.coroutines.experimental.*
17
17
* or artificial [CancellationException] if no cause was provided
18
18
* @suppress **This is unstable API and it is subject to change.**
19
19
*/
20
- // todo: rename to Cancelled
20
+ @InternalCoroutinesApi
21
21
open class CompletedExceptionally (
22
22
@JvmField public val cause : Throwable
23
23
) {
@@ -34,6 +34,7 @@ open class CompletedExceptionally(
34
34
* if created on first access to [exception] property.
35
35
* @suppress **This is unstable API and it is subject to change.**
36
36
*/
37
+ @InternalCoroutinesApi
37
38
public class CancelledContinuation (
38
39
continuation : Continuation <* >,
39
40
cause : Throwable ?
Original file line number Diff line number Diff line change @@ -54,10 +54,8 @@ public enum class CoroutineStart {
54
54
*
55
55
* Cancellability of coroutine at suspension points depends on the particular implementation details of
56
56
* suspending functions as in [DEFAULT].
57
- *
58
- * @suppress **This an internal API and should not be used from general code.**
59
57
*/
60
- @InternalCoroutinesApi
58
+ @ExperimentalCoroutinesApi
61
59
ATOMIC ,
62
60
63
61
/* *
Original file line number Diff line number Diff line change @@ -118,6 +118,7 @@ internal fun <T> Continuation<T>.resumeDirectWithException(exception: Throwable)
118
118
/* *
119
119
* @suppress **This is unstable API and it is subject to change.**
120
120
*/
121
+ @InternalCoroutinesApi
121
122
public interface DispatchedTask <in T > : Runnable {
122
123
public val delegate: Continuation <T >
123
124
public val resumeMode: Int get() = MODE_CANCELLABLE
@@ -158,6 +159,7 @@ public interface DispatchedTask<in T> : Runnable {
158
159
/* *
159
160
* @suppress **This is unstable API and it is subject to change.**
160
161
*/
162
+ @InternalCoroutinesApi
161
163
public fun <T > DispatchedTask<T>.dispatch (mode : Int = MODE_CANCELLABLE ) {
162
164
var useMode = mode
163
165
val delegate = this .delegate
Original file line number Diff line number Diff line change @@ -411,6 +411,7 @@ public inline fun DisposableHandle(crossinline block: () -> Unit) =
411
411
*
412
412
* @suppress **This is unstable API and it is subject to change.**
413
413
*/
414
+ @InternalCoroutinesApi
414
415
internal interface ChildJob : Job {
415
416
/* *
416
417
* Parent is cancelling its child by invoking this method.
@@ -419,6 +420,7 @@ internal interface ChildJob : Job {
419
420
*
420
421
* @suppress **This is unstable API and it is subject to change.**
421
422
*/
423
+ @InternalCoroutinesApi
422
424
public fun parentCancelled (parentJob : Job )
423
425
}
424
426
@@ -427,6 +429,7 @@ internal interface ChildJob : Job {
427
429
*
428
430
* @suppress **This is unstable API and it is subject to change.**
429
431
*/
432
+ @InternalCoroutinesApi
430
433
internal interface ChildHandle : DisposableHandle {
431
434
/* *
432
435
* Child is cancelling its parent by invoking this method.
@@ -436,6 +439,7 @@ internal interface ChildHandle : DisposableHandle {
436
439
*
437
440
* @suppress **This is unstable API and it is subject to change.**
438
441
*/
442
+ @InternalCoroutinesApi
439
443
public fun childCancelled (cause : Throwable ): Boolean
440
444
}
441
445
You can’t perform that action at this time.
0 commit comments