Skip to content

Commit e3242a5

Browse files
committed
Docs: Add scope, dispatcher and other group sections to thread module
1 parent d1f74fd commit e3242a5

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

WordPress/src/main/java/org/wordpress/android/modules/ThreadModule.kt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,16 @@ const val IO_THREAD = "IO_THREAD"
1919
@InstallIn(SingletonComponent::class)
2020
@Module
2121
class ThreadModule {
22+
/* SCOPE */
23+
2224
@Provides
2325
@Named(APPLICATION_SCOPE)
2426
fun provideApplicationScope(): CoroutineScope {
2527
return CoroutineScope(Dispatchers.Default)
2628
}
2729

30+
/* DISPATCHER */
31+
2832
@Provides
2933
@Named(UI_THREAD)
3034
fun provideUiDispatcher(): CoroutineDispatcher {
@@ -43,6 +47,8 @@ class ThreadModule {
4347
return Dispatchers.IO
4448
}
4549

50+
/* OTHER */
51+
4652
@Provides
4753
fun provideDebouncer(): Debouncer {
4854
return Debouncer()

0 commit comments

Comments
 (0)