0

We can use coroutines dispatchers as executor like Dispatchers.Default.asExecutor()

and we do it when we want to use a coroutine just as a executor for operations in application lifetime like GlobalScope.launch(){}

but we always hear from people (specially from kotlin docs) that using GlobalScope strongly discouraged

does any of those disadvantages have anything to do with using dispatchers as executor in such cases?

At a glance when to use and when not to use dispatchers as executor

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.