<@U2W6BJ91R> Just write a simple helper function. ...
# coroutines
e
@okkero Just write a simple helper function. For example:
Copy code
suspend fun <T> suspending(block: suspend () -> T): T = CoroutineIntrinsics.suspendCoroutineOrReturn { c ->
    block.startCoroutine(completion = c)
    CoroutineIntrinsics.SUSPENDED
}
Now, using
suspending
helper function you can write:
Copy code
suspend fun myFunction(args: Args): ReturnType = suspending {
    \\ do whatever you want here -- invoke suspending functions at arbitrary points
}
Note, that the need to add
suspending
will be removed in the future release.