You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
async and async-like builders cancel parent on failure
* Affects async, CompletableDeferred, and all Rx integration builders.
* This makes all coroutine builders totally consistent. They all
cancel parent on failure, but they all consider "CancellationException"
to be the case of "normal cancellation" that does not propagate to
parent. The only missing case is Job() that should be fixed together
with introduction of SupervisorJob().
* Note that "scoping" builders don't "cancel the parent", but rethrow
the corresponding exception instead, so it that is how it gets
propagated up the stack.
* This makes parallel decomposition exception-safe. You
cannot loose an exception as along as default (child async)
behavior is not overridden.
Fixes#552
Copy file name to clipboardExpand all lines: binary-compatibility-validator/reference-public-api/kotlinx-coroutines-core.txt
+2-1
Original file line number
Diff line number
Diff line change
@@ -71,13 +71,14 @@ public final class kotlinx/coroutines/experimental/CancellableContinuation$Defau
71
71
public static synthetic fun tryResume$default (Lkotlinx/coroutines/experimental/CancellableContinuation;Ljava/lang/Object;Ljava/lang/Object;ILjava/lang/Object;)Ljava/lang/Object;
72
72
}
73
73
74
-
public final class kotlinx/coroutines/experimental/CancellableContinuationImpl : java/lang/Runnable, kotlinx/coroutines/experimental/CancellableContinuation {
74
+
public class kotlinx/coroutines/experimental/CancellableContinuationImpl : java/lang/Runnable, kotlinx/coroutines/experimental/CancellableContinuation {
75
75
public fun <init> (Lkotlin/coroutines/experimental/Continuation;I)V
76
76
public fun completeResume (Ljava/lang/Object;)V
77
77
public fun getContext ()Lkotlin/coroutines/experimental/CoroutineContext;
78
78
public fun getSuccessfulResult (Ljava/lang/Object;)Ljava/lang/Object;
79
79
public fun initCancellability ()V
80
80
public fun invokeOnCompletion (ZZLkotlin/jvm/functions/Function1;)Lkotlinx/coroutines/experimental/DisposableHandle;
81
+
protected fun nameString ()Ljava/lang/String;
81
82
public fun resumeUndispatched (Lkotlinx/coroutines/experimental/CoroutineDispatcher;Ljava/lang/Object;)V
82
83
public fun resumeUndispatchedWithException (Lkotlinx/coroutines/experimental/CoroutineDispatcher;Ljava/lang/Throwable;)V
83
84
public fun tryResume (Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
0 commit comments