Intermediate Kotlin
Q68 / 100

What is the difference between Dispatchers.Main and Dispatchers.IO?

Correct! Well done.

Incorrect.

The correct answer is B) Dispatchers.Main runs coroutines on the UI thread; Dispatchers.IO uses a thread pool optimized for blocking I/O

B

Correct Answer

Dispatchers.Main runs coroutines on the UI thread; Dispatchers.IO uses a thread pool optimized for blocking I/O

Explanation

Dispatchers.Main is the UI dispatcher. Dispatchers.IO has a large thread pool (default 64) designed for blocking I/O like network or disk operations.

Progress
68/100