Skip to content

Commit

Permalink
feat: Make main dispatcher immediate for better UI performance
Browse files Browse the repository at this point in the history
  • Loading branch information
Abdulsalam-j committed Jan 13, 2024
1 parent 27990a5 commit e3a31e5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ import kotlinx.coroutines.Dispatchers
/**
* We use coroutines native-mt version, so we can use Main dispatcher on both platforms
*/
fun createUIDispatcher(): CoroutineDispatcher = Dispatchers.Main
fun createUIDispatcher(): CoroutineDispatcher = Dispatchers.Main.immediate

0 comments on commit e3a31e5

Please sign in to comment.