Created
June 26, 2020 15:39
-
-
Save JoseAlcerreca/33d0890860b53c2b9285a24d81cba34c 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
<!-- Copyright 2020 Google LLC. | |
SPDX-License-Identifier: Apache-2.0 --> | |
@InstallIn(ApplicationComponent::class) | |
@Module | |
object TestCoroutinesModule { | |
@DefaultDispatcher | |
@Provides | |
fun providesDefaultDispatcher(): CoroutineDispatcher = | |
AsyncTask.THREAD_POOL_EXECUTOR.asCoroutineDispatcher() | |
... | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment