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

Kulwinder Singh

02/06/2019, 7:38 AM
here
firstAction()
will be called even if i cancel job while coroutine is suspended by delay, what i'm doing wrong here ?
b

bdawg.io

02/06/2019, 7:46 AM
How are you cancelling it? Your code is cancelling children coroutines, but not the Job returned by the launch itself
👍 1
k

Kulwinder Singh

02/06/2019, 7:49 AM
ohh sorry that's my mistake, you are right ->`myJob?.cancel()` worked
3 Views