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 769d482 commit 7400ff0Copy full SHA for 7400ff0
kotlinx-coroutines-core/src/main/kotlin/kotlinx/coroutines/experimental/Builders.kt
@@ -223,7 +223,7 @@ private class BlockingCoroutine<T>(
223
if (Thread.interrupted()) throw InterruptedException().also { cancel(it) }
224
val parkNanos = eventLoop?.processNextEvent() ?: Long.MAX_VALUE
225
// note: process next even may look unpark flag, so check !isActive before parking
226
- if (!isActive) break
+ if (isCompleted) break
227
LockSupport.parkNanos(this, parkNanos)
228
}
229
// process queued events (that could have been added after last processNextEvent and before cancel
0 commit comments