File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
kotlinx-coroutines-core/src/main/kotlin/kotlinx/coroutines/experimental Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -322,7 +322,7 @@ public open class JobSupport(active: Boolean) : AbstractCoroutineContextElement(
322
322
323
323
internal fun completeUpdateState (expect : Any , update : Any? ) {
324
324
// Invoke completion handlers
325
- val cause = (update as ? CompletedExceptionally )?.exception
325
+ val cause = (update as ? CompletedExceptionally )?.cause
326
326
var completionException: Throwable ? = null
327
327
when (expect) {
328
328
// SINGLE/SINGLE+ state -- one completion handler (common case)
@@ -537,7 +537,7 @@ public open class JobSupport(active: Boolean) : AbstractCoroutineContextElement(
537
537
* @param cause the exceptional completion cause. If `cause` is null, then a [CancellationException]
538
538
* if created on first get from [exception] property.
539
539
*/
540
- public open class CompletedExceptionally (cause : Throwable ? ) {
540
+ public open class CompletedExceptionally (val cause : Throwable ? ) {
541
541
@Volatile
542
542
private var _exception : Throwable ? = cause // materialize CancellationException on first need
543
543
You can’t perform that action at this time.
0 commit comments