1 min readMay 2, 2018
The first map will immediately create and start/queue up an async coroutine, returning a Deferred
for each. The second map will just iteratively await
the result of each.
In the scenario that we have 4 items, a thread pool of 4+ threads, and each async operation takes 100ms; the first await()
will take ~100ms, but the rest should complete near instantly since they’ve all been running concurrently.
That’s my understanding anyway.