Hi guys. I got a strange situation with `suspend` ...
# announcements
d
Hi guys. I got a strange situation with
suspend
function which I can't solve: I got function
suspend fun one()
which executes some code and then calls a function that accepts a callback function as a param. But, this param function is not suspend. The issue is that I need to call another suspend fun from that callback param function. Here's an example:
Copy code
suspend fun one() {
    doSomething()
    funWithNonSuspendCallback("data") {
        two() // I need to call it from here but this is not suspend scope anymore
    }
}

suspend fun two() {
}
a
#C1CFAFJSK
d
ty @Andreas Sinz. I didn't see this channel
n
i think making that function and callback inlined would allow suspen calls from there