Join Slack
Powered by
here `firstAction()` will be called even if i canc...
# 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 ?
job__cancelChildren___not_canceling_previous_job__.kt
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
Open in Slack
Previous
Next