Sam Garfinkel
05/28/2020, 3:39 PMFoo, run Bar on all of the `Foo`s in parallel, then rejoin the results of Bar(Foo) as an iterable of Foo in the original order they were given? Suppose Bar(Foo) will not run the same amount of time per Foo .uli
05/29/2020, 3:34 PMsequence
.map {
async { Foo(Bar) }
}.map {
it.await()
}Sam Garfinkel
06/02/2020, 3:24 PMmap runs sequentially on all elements before yielding to the next function (in Java streams, I think it’s not well defined).