File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
sample/app/src/main/java/com/hoc081098/channeleventbus/sample/android/common Expand file tree Collapse file tree 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> {
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}
You can’t perform that action at this time.
0 commit comments