crocsandcoffee
1 min readApr 12, 2020

--

For those of you using dagger, you can create a provides method for this custom application coroutine scope, mark it as singleton, and then you don’t have to worry about going through the application context / application class to pass a reference to your repositories. I think this is a better approach since you should already be injecting the dispatchers in the constructors.

Thoughts? Manuel Vivo

--

--

crocsandcoffee
crocsandcoffee

Written by crocsandcoffee

Staff Android Engineer @ Block/Square | Android Tech Lead @ Flave | Android Lead @ RadioJavan | Gamer | Foodie | CodeBlooded

Responses (2)