Support new suspend convention in JVM backend partially
Stack-unwinding does not work yet
#KT-14924 In Progress
Original commit: 1f98accad2
This commit is contained in:
@@ -5,7 +5,7 @@ fun async(coroutine x: Controller.() -> Continuation<Unit>) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
class Controller {
|
class Controller {
|
||||||
suspend fun step(param: Int, next: Continuation<Int>) {
|
suspend fun step(param: Int) = suspendWithCurrentContinuation<Int> { next ->
|
||||||
next.resume(param + 1)
|
next.resume(param + 1)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user