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 6304ef7 commit b9f427dCopy full SHA for b9f427d
kotlinx-coroutines-async-common/src/main/kotlin/runWithCurrentContinuation.kt
@@ -5,9 +5,9 @@ import java.util.concurrent.atomic.AtomicReference
5
suspend fun <T> runWithCurrentContinuation(
6
block: (Continuation<T>) -> Unit
7
): T = suspendWithCurrentContinuation { continuation ->
8
- val safe = SafeContinuation<T>(continuation)
+ val safe = SafeContinuation(continuation)
9
block(safe)
10
- return@suspendWithCurrentContinuation safe.returnResult()
+ safe.returnResult()
11
}
12
13
private class SafeContinuation<in T>(val delegate: Continuation<T>) : Continuation<T> {
0 commit comments