Created
June 4, 2021 13:02
-
-
Save manuelvicnt/e2376a01107dcba5090003d5b894495b to your computer and use it in GitHub Desktop.
This file contains hidden or 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 ApplicationDiContainer { | |
val applicationScope = CoroutineScope(SupervisorJob() + Dispatchers.Default) | |
val myRepository = MyRepository(applicationScope) | |
} | |
class MyApplication : Application() { | |
val applicationDiContainer = ApplicationDiContainer() | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment