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(
322322
323323 internal fun completeUpdateState (expect : Any , update : Any? ) {
324324 // Invoke completion handlers
325- val cause = (update as ? CompletedExceptionally )?.exception
325+ val cause = (update as ? CompletedExceptionally )?.cause
326326 var completionException: Throwable ? = null
327327 when (expect) {
328328 // SINGLE/SINGLE+ state -- one completion handler (common case)
@@ -537,7 +537,7 @@ public open class JobSupport(active: Boolean) : AbstractCoroutineContextElement(
537537 * @param cause the exceptional completion cause. If `cause` is null, then a [CancellationException]
538538 * if created on first get from [exception] property.
539539 */
540- public open class CompletedExceptionally (cause : Throwable ? ) {
540+ public open class CompletedExceptionally (val cause : Throwable ? ) {
541541 @Volatile
542542 private var _exception : Throwable ? = cause // materialize CancellationException on first need
543543
You can’t perform that action at this time.
0 commit comments