https://kotlinlang.org logo
#android
Title
# android
i

Icaro Temponi

12/13/2018, 7:13 PM
Hi everyone, just a quick question: For everyone using coroutines, when do you think it's best to cancel the children jobs of a lifecycle owner? I'm currently using in onStop, which is kind of balanced, not too often but not as rare as once when the component is destroyed, what are your thoughts?
j

Jorge R

12/13/2018, 7:27 PM

https://www.youtube.com/watch?v=a3agLJQ6vt8

this is the conference from Elisarov this year in Kotlinconf
quite nice explaining how to deal with death coroutines
I guess it will help on when to cancel them
i

Icaro Temponi

12/13/2018, 7:40 PM
thanks, i'll take a look at it, but I really wanted to know what do people do usually at production
p

pawelbochenski

12/14/2018, 7:28 AM
Viewmodel::onClear
👍 1
3 Views