maxmello
09/03/2021, 12:59 PMApplication
class and always reference them via the Application
instance, does it make any difference if I use GlobalScope.launch
to launch a coroutine, or let my Application
extend CoroutineScope
and pass in the Application
instance to the class to do application.launch
instead? I ask because of the (new?) warnings about DelicateCoroutinesApi
when using GlobalScope. When I use the second approach, the warning goes away, but I would assume they are functionally the same as both the Application’s coroutineScope and GlobalScope live the whole time the app is running? (Note this is mostly about doing things once asynchronously on start of the application)Lefko
09/03/2021, 2:38 PMmaxmello
09/06/2021, 12:18 PM