Wai-Wai Ng
10/21/2022, 4:24 PMprivate suspend fun awaitX(arg1: String): X? = suspendCancellableCoroutine {
functionThatExecutesCallback{ result -> println("test"); it.resume(result) }
}
and for some reason, the function that calls this never resumes execution even though test
does get printed. Any obvious ideas as to what to check? IntelliJ isn't showing the Coroutine debugger tab so I'm somewhat limited to debugging by printing...Zach Klippenstein (he/him) [MOD]
10/21/2022, 5:11 PMWai-Wai Ng
10/21/2022, 6:24 PMZach Klippenstein (he/him) [MOD]
10/25/2022, 2:42 PMWai-Wai Ng
11/02/2022, 2:35 PMrunBlocking
inside functionThatExecutesCallback
that launched a separate coroutine that never finished. I'm not sure this is strictly intuitive behaviour but at the same time I'm not persuaded it's definitely wrong.Zach Klippenstein (he/him) [MOD]
11/02/2022, 4:39 PM