Ehm, I might be stupid -- how can I await on List&...
# coroutines
u
Ehm, I might be stupid -- how can I await on List<Deferred> ? deferreds.forEach { it.await() } seems to make it sequential
o
what's wrong with doing that sequentially? iirc there is an
List<Deferred<T>>.awaitAll()
, but it does the same thing
u
well I want parallel execution and wait for all to complete and then proceed. Yes awaitAll is there, facepalm sorry, thanks
w
Unless you specify the async call to be lazy, all the calls will be running in parallel already
so with await all or iterating over the list, you're just waiting for them all to complete
u
yes im aware, thank you guys