hmmm
assume I have 4 default dispatcher workers; and I ended up making a blocking call on all of them like
CompletableFuture.get()
DefaultDispatcher-worker-1
.get()
DefaultDispatcher-worker-2
.get()
DefaultDispatcher-worker-3
.get()
DefaultDispatcher-worker-4
.get()
now unfortunately, due to "reasons", these completablefutures are from
GlobalScope.future(<http://Dispatchers.IO|Dispatchers.IO>) { }
and none of these can spawn because
<http://Dispatchers.IO|Dispatchers.IO>
should not context switch, but because all DefaultDispatcher-workers are blocked, there's a deadlock
there are obviously better and correct-er ways of fixing this; but out of curiosity, if
<http://Dispatchers.IO|Dispatchers.IO>
spawn wasn't blocked on
Dispatchers.Default
this could
probably be avoided