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

Daniel Lukic

05/23/2020, 2:30 PM
bit of a weird question.. is there anything like persisting a coroutine? like, its current state? and restoring it, to continue were it was before? or anything that points in this direction? could that even make any sense? a bit weird, right? just an experimental thought in some android project.. context is backgrounding the app during some more involved flow.. and restoring it.. without having to do this on a - idk view model or something - level.. and instead just saying "resume the coroutines".. low priority.. but any thoughts on this appreciated.. 😊
d

Daniel Lukic

05/23/2020, 2:37 PM
cool. thank you!
l

louiscad

05/23/2020, 5:31 PM
If intermediate work can be persisted, it might be best to design it to resume where it left off, and that is also safe for app updates and code changes implied.
5 Views