File tree 1 file changed +2
-2
lines changed
sample/app/src/main/java/com/hoc081098/channeleventbus/sample/android/common 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ sealed interface SingleEventFlow<E> : Flow<E> {
20
20
* Must collect in [Dispatchers.Main.immediate][kotlinx.coroutines.MainCoroutineDispatcher.immediate].
21
21
* Safe to call in the coroutines launched by [androidx.lifecycle.lifecycleScope].
22
22
*
23
- * In Compose, we can use [CollectWithLifecycleEffect] with `inImmediateMain = true` .
23
+ * In Compose, we can use [CollectWithLifecycleEffect] with [CollectWithLifecycleEffectDispatcher.ImmediateMain] .
24
24
*/
25
25
@MainThread
26
26
override suspend fun collect (collector : FlowCollector <E >)
@@ -32,7 +32,7 @@ interface HasSingleEventFlow<E> {
32
32
* Must collect in [Dispatchers.Main.immediate][kotlinx.coroutines.MainCoroutineDispatcher.immediate].
33
33
* Safe to call in the coroutines launched by [androidx.lifecycle.lifecycleScope].
34
34
*
35
- * In Compose, we can use [CollectWithLifecycleEffect] with `inImmediateMain = true` .
35
+ * In Compose, we can use [CollectWithLifecycleEffect] with [CollectWithLifecycleEffectDispatcher.ImmediateMain] .
36
36
*/
37
37
val singleEventFlow: SingleEventFlow <E >
38
38
}
You can’t perform that action at this time.
0 commit comments