Skip to content

Commit e3a31e5

Browse files
committed
feat: Make main dispatcher immediate for better UI performance
1 parent 27990a5 commit e3a31e5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mvvm-internal/src/commonMain/kotlin/dev/icerock/moko/mvvm/internal/createUIDispatcher.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@ import kotlinx.coroutines.Dispatchers
1010
/**
1111
* We use coroutines native-mt version, so we can use Main dispatcher on both platforms
1212
*/
13-
fun createUIDispatcher(): CoroutineDispatcher = Dispatchers.Main
13+
fun createUIDispatcher(): CoroutineDispatcher = Dispatchers.Main.immediate

0 commit comments

Comments
 (0)