https://kotlinlang.org logo
#coroutines
Title
# coroutines
s

Steven

05/28/2019, 2:43 PM
I also have a problem with the delay function. I am trying to do a simple while in kotlin multiplatform. The following function works in android but not on iOS. In the logs on iOS side, i see "Before delay" but i don't see the other print.
Oh, i forgot to mention but this block is in a suspend function block
d

Dico

05/28/2019, 5:48 PM
Check that the parent job isn't cancelled
s

Steven

05/28/2019, 6:44 PM
I don't cancel it explicitly, but maybe something else is cancelling it? 🤔
v

Vans239

05/28/2019, 7:57 PM
Collect coroutine stacktraces. It should help
s

Steven

05/28/2019, 8:00 PM
how do i collect the coroutine stacktrace when running on an iOS device?
g

gildor

05/29/2019, 11:13 AM
Also make sure that you do not block this dispatcher
6 Views