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 ad0f844 commit fd0f81e
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 fd0f81e

Please sign in to comment.