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

Dominaezzz

05/20/2021, 11:25 AM
Tbh, I don't like that fact that it's been marked as delicate, there are other ways to do the same discouraged thing. Maybe the coroutine scope constructor should also be marked as delicate, since one can still forget to cancel it. Then again I don't really use global scope so I don't really care that much.
z

Zach Klippenstein (he/him) [MOD]

05/20/2021, 2:56 PM
Yes you can still shoot yourself in the foot, but with this change at least you have to think just the smallest bit harder about it
d

Dominaezzz

05/20/2021, 4:42 PM
Before this change of seen a couple codebases where they don't use global scope but the just create coroutine scopes on the fly for each launch. People who want to think will think and people who don't want to think won't think.
4 Views