Kroppeb
11/03/2019, 2:09 AMDeferred<V>
but only fail if both fail. Would this work/is there a better way to do it?Dico
11/03/2019, 8:51 AMDico
11/03/2019, 8:52 AMsupervisorScope {}
Kroppeb
11/03/2019, 11:43 AMoctylFractal
11/03/2019, 7:19 PMselect<Int> {
t.onJoin {
try {
t.await()
} catch (e: Exception) {
o.await()
}
}
o.onJoin {
try {
o.await()
} catch (e: Exception) {
t.await()
}
}
}
with the try-catch probably pulled out to a functionDico
11/03/2019, 7:21 PMoctylFractal
11/03/2019, 7:22 PMawait
. more reasons to make it its own function 🙂Dico
11/03/2019, 7:23 PMif (isCompletedExceptionally)