We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d1f74fd commit e3242a5Copy full SHA for e3242a5
WordPress/src/main/java/org/wordpress/android/modules/ThreadModule.kt
@@ -19,12 +19,16 @@ const val IO_THREAD = "IO_THREAD"
19
@InstallIn(SingletonComponent::class)
20
@Module
21
class ThreadModule {
22
+ /* SCOPE */
23
+
24
@Provides
25
@Named(APPLICATION_SCOPE)
26
fun provideApplicationScope(): CoroutineScope {
27
return CoroutineScope(Dispatchers.Default)
28
}
29
30
+ /* DISPATCHER */
31
32
33
@Named(UI_THREAD)
34
fun provideUiDispatcher(): CoroutineDispatcher {
@@ -43,6 +47,8 @@ class ThreadModule {
43
47
return Dispatchers.IO
44
48
45
49
50
+ /* OTHER */
51
46
52
53
fun provideDebouncer(): Debouncer {
54
return Debouncer()
0 commit comments