groostav
07/30/2019, 3:03 AMrunBlocking(JavaFx) { runBlocking(JavaFx) { }}
causes deadlock but runBlocking(JavaFx) { runBlocking { }}
does not?gildor
07/30/2019, 3:07 AMAdam Powell
07/30/2019, 3:11 AMJavaFx
dispatcher and blocking the JavaFx
thread until that new event loop exits, but in the first example the inner runBlocking(JavaFx)
says, "block the current thread I am on until the coroutine I would like to run on the JavaFx dispatcher completes", but you're already on the JavaFx dispatcher and blocking it, so the thing you're waiting for can't start.Adam Powell
07/30/2019, 3:16 AMrunBlocking
if there were some magic in there to turn it into a trampoline in cases like thisuli
07/30/2019, 4:43 AMelizarov
07/30/2019, 6:55 AM