littlelightcz
08/20/2018, 5:26 PMlaunchUI {}
for launch(JavaFx) {}
and commonPool {}
for withContext(CommonPool) {}
. If something similar would be considered to be added to the coroutines-javafx and base coroutines libraries, that would be a thumbs up from me 👍🙂igorvd
08/20/2018, 5:49 PMlaunchUI
littlelightcz
08/20/2018, 6:06 PMthevery
08/20/2018, 8:19 PMgildor
08/21/2018, 2:30 AMwithContext(CommonPool) {}
?elizarov
08/21/2018, 8:46 AMthevery
08/21/2018, 9:21 AMWhat is your use case forprobably offload some work off the main thread??withContext(CommonPool) {}
gildor
08/21/2018, 9:24 AMIO
thevery
08/21/2018, 10:59 AMIO
already available?gildor
08/21/2018, 12:21 PMlittlelightcz
08/21/2018, 4:52 PMlittlelightcz
08/21/2018, 4:54 PMgildor
08/21/2018, 5:15 PMcommonPool
method, because you just shouldn't use it for any blocking operations otherwise once you will get deadlocklittlelightcz
08/21/2018, 6:52 PMrunBlocking {}
so I don't know if that was the cause or something else. Anyway nowadays when I launch a coroutine on the UI thread and then move blocking tasks either to CommonPool or to a different dedicated pool (using withContext
or async
depending on the use case), no deadlocks so far.littlelightcz
08/21/2018, 6:57 PMthevery
08/22/2018, 12:01 AM