https://kotlinlang.org logo
d

Dico

09/11/2018, 4:09 AM
@Dias sorry I don't know where the reply button is now. As for your last question, the coroutine in the first example never suspends (or parks using
Thread.sleep
), whereas the one in the second example calls the
delay
suspend function, which is suspending the coroutine. I don't know the semantics around cancellation exactly, but if you're observing this behavior, I'm sure it'll be related to this distinction.
🧵 2