zokipirlo
02/06/2019, 12:18 PMlaunch
a coroutine where I call one long blocking method (some library in native code) on <http://Dispatcher.IO|Dispatcher.IO>
, is it possible that this coroutine executes on a thread on which some other coroutine is running and will block execution of that other coroutine?streetsofboston
02/06/2019, 12:30 PMIO
is large.streetsofboston
02/06/2019, 12:32 PMIO
thread pool, while the other is still blocked.zokipirlo
02/06/2019, 2:09 PMstreetsofboston
02/06/2019, 2:44 PMIO
, when you do something like this, all bets are off:
for (i in 0..1000) { launch(<http://Dispatchers.IO|Dispatchers.IO>) { Thread.sleep(500) } }
🙂yschimke
02/06/2019, 4:40 PMstreetsofboston
02/06/2019, 4:42 PMyschimke
02/06/2019, 4:46 PM