<@U21LBQBU2> i care for the order. I want to abort...
# coroutines
u
@bj0 i care for the order. I want to abort with an exception, as soon as any of the jobs throws. If I'd do
deferredExports.foreach { it.await() }
and the first job takes the longest, I'd only get the exception of another job, after the first terminates.
v
https://github.com/Kotlin/kotlinx.coroutines/issues/171 is almost ready đŸ™‚ It’s designed to fit your use-case and is as performant as possible
u
Hi @Vsevolod Tolstopyatov [JB], thanks for the hint. Is the current state of the implementation somewhere on git? I am curious to see your solution
v
Hi, sure: https://github.com/Kotlin/kotlinx.coroutines/pull/323 But it’s mixed with some changes in internal machinery. Implementation can be found in
Await.kt
u
Thanks