Created
March 17, 2019 23:49
-
-
Save RBusarow/4de22598078c92aaaeca8939640d8620 to your computer and use it in GitHub Desktop.
Initialization of a repository using the CoroutineScope of the dependant class
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class MyViewModel : BaseViewModel() { | |
val myRepository = MyRepositoryImpl( | |
coroutineScope = this + Dispatchers.IO | |
) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment