jivimberg
11/06/2018, 3:40 PMmap
block (i.e. get to line 9) and then wait for the result.
Right now the await()
on line 6 is preventing me to do that.
Using CoroutineStart.LAZY
works but then I don’t get the nice parallel execution because each async only starts when it’s needed.Alexander
11/06/2018, 4:40 PMdownloadContent
function with delay(500)
, added time measuring and got:
Lanch jobs time: 50
Wait jobs time: 562
Total time: 656
So I think that is what you expected to see.jivimberg
11/06/2018, 5:07 PMAlexander
11/06/2018, 5:24 PMjivimberg
11/06/2018, 5:57 PMawait()
call on line 6 is not blocking the main coroutine execution as I initially thought.
Was working as intended all alongjivimberg
11/06/2018, 5:58 PM