Join Slack
Communities
Powered by
Do you use GlobalScope/NonCancelable for database ...
# android
f
Florian
09/26/2020, 7:16 AM
Do you use GlobalScope/NonCancelable for database operations in coroutines? If not, how do you avoid that the operation ends prematurely (for example by closing the app)
t
tseisel
09/26/2020, 8:22 AM
If think you'll find most answers in this blog post:
https://medium.com/androiddevelopers/coroutines-patterns-for-work-that-shouldnt-be-cancelled-e26c40f142ad
f
Florian
09/26/2020, 8:36 AM
yea I just read the article 1 minute ago actually
Florian
09/26/2020, 8:36 AM
thank you
3
Views
Open in Slack
Previous
Next