We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c95134f commit 63e779cCopy full SHA for 63e779c
integration/kotlinx-coroutines-jdk8/src/main/kotlin/kotlinx/coroutines/experimental/future/Future.kt
@@ -132,6 +132,7 @@ public suspend fun <T> CompletableFuture<T>.await(): T {
132
private class ContinuationConsumer<T>(
133
@Volatile @JvmField var cont: Continuation<T>?
134
) : BiConsumer<T?, Throwable?> {
135
+ @Suppress("UNCHECKED_CAST")
136
override fun accept(result: T?, exception: Throwable?) {
137
val cont = this.cont ?: return // atomically read current value unless null
138
if (exception == null) // the future has been completed normally
0 commit comments