hallvard
04/23/2020, 6:45 PMoctylFractal
04/23/2020, 6:48 PM# of logical cores
threads to work with, so if you're on a single core system, you'd block your entire application from functioning! the IO dispatcher is where those calls must be, because it has 64 threads by default, making it much harder (but not impossible) to block your application by filling these up, because if all of the IO threads are full the default dispatcher can still functionhallvard
04/23/2020, 6:52 PMoctylFractal
04/23/2020, 6:54 PMwithContext(<http://Dispatchers.IO|Dispatchers.IO>) { blockingCall() }
, if you're already on the IO dispatcher this won't cause a re-dispatch and should be pretty fasthallvard
04/23/2020, 6:57 PM