Lou Morda
1 min readFeb 18, 2019

--

I’m also wondering about the Dispatchers.Main being used. In experimental coroutines I was using this for network calls:
newFixedThreadPoolContext(THREAD_COUNT, “networkIO”)
with Kotlin coroutines, I believe this:
Dispatchers.IO
is mostly used for disk I/O like reading from file system or using Android Room. I think the worst case scenario for a network call would be:
Dispatchers.Main

Does anyone know if Dispatchers.IO should be used for network calls?

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

--

--

Lou Morda
Lou Morda

Responses (1)

Write a response