I/O Dispatchers
Learn about I/O dispatchers and how they work with a custom or fixed pool of threads.
We'll cover the following
The Dispatchers.IO
dispatcher is designed to be used when we block threads with I/O operations—for instance, when we read/write files, use Android shared preferences, or call blocking functions. The code below takes around one second because Dispatchers.IO
simultaneously allows more than 50 active threads.
Get hands-on with 1200+ tech skills courses.