Julia Samól
08/24/2023, 2:27 PMnewSingleThreadContext("MyName").use {
runBlocking(it) {
// some suspend calls, including `delay`
}
}
but it always ended up with the ANR error. Is that expected? I thought that runBlocking
blocked the current thread, which in this case should be a new background thread, not the main thread. If that’s the case, then why this code would result in ANR?