Created
August 2, 2022 18:24
-
-
Save ifucolo/31160c404587675b12ce571f2d85dc4d to your computer and use it in GitHub Desktop.
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
@DefaultDispatcher | |
@Provides | |
fun providesDefaultDispatcher(): CoroutineDispatcher = Dispatchers.Default | |
@IoDispatcher | |
@Provides | |
fun providesIoDispatcher(): CoroutineDispatcher = Dispatchers.IO | |
@MainDispatcher | |
@Provides | |
fun providesMainDispatcher(): CoroutineDispatcher = Dispatchers.Main |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment