Skip to content

Commit f903078

Browse files
committed
sample: fix comment
1 parent 13979da commit f903078

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sample/app/src/main/java/com/hoc081098/channeleventbus/sample/android/common/SingleEventChannel.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ sealed interface SingleEventFlow<E> : Flow<E> {
2020
* Must collect in [Dispatchers.Main.immediate][kotlinx.coroutines.MainCoroutineDispatcher.immediate].
2121
* Safe to call in the coroutines launched by [androidx.lifecycle.lifecycleScope].
2222
*
23-
* In Compose, we can use [CollectWithLifecycleEffect] with `inImmediateMain = true`.
23+
* In Compose, we can use [CollectWithLifecycleEffect] with [CollectWithLifecycleEffectDispatcher.ImmediateMain].
2424
*/
2525
@MainThread
2626
override suspend fun collect(collector: FlowCollector<E>)
@@ -32,7 +32,7 @@ interface HasSingleEventFlow<E> {
3232
* Must collect in [Dispatchers.Main.immediate][kotlinx.coroutines.MainCoroutineDispatcher.immediate].
3333
* Safe to call in the coroutines launched by [androidx.lifecycle.lifecycleScope].
3434
*
35-
* In Compose, we can use [CollectWithLifecycleEffect] with `inImmediateMain = true`.
35+
* In Compose, we can use [CollectWithLifecycleEffect] with [CollectWithLifecycleEffectDispatcher.ImmediateMain].
3636
*/
3737
val singleEventFlow: SingleEventFlow<E>
3838
}

0 commit comments

Comments
 (0)