commit | 2f6d7c9666ea6f211999079c55c25a84e8145619 | [log] [tgz] |
---|---|---|
author | Roman Elizarov <elizarov@gmail.com> | Fri Feb 03 15:16:07 2017 +0300 |
committer | Roman Elizarov <elizarov@gmail.com> | Fri Feb 03 15:49:59 2017 +0300 |
tree | 559b9685952343bd4610593bf89da50829f12df3 | |
parent | b3d55a5f8707bfdee502151ee740496ca6a9bdd5 [diff] [blame] |
A guide on coroutine contexts, Here context renamed to Unconfined
diff --git a/kotlinx-coroutines-core/src/main/kotlin/kotlinx/coroutines/experimental/Deferred.kt b/kotlinx-coroutines-core/src/main/kotlin/kotlinx/coroutines/experimental/Deferred.kt index 6b5b448..896d669 100644 --- a/kotlinx-coroutines-core/src/main/kotlin/kotlinx/coroutines/experimental/Deferred.kt +++ b/kotlinx-coroutines-core/src/main/kotlin/kotlinx/coroutines/experimental/Deferred.kt
@@ -87,4 +87,8 @@ if (state is CompletedExceptionally) throw state.exception return state as T } + + // for nicer debugging + override fun toString(): String = "${javaClass.simpleName}{" + + (if (isActive) "isActive=true" else "completed=${getState()}") + "}" }