Amanjeet Singh
08/19/2019, 8:35 AMval a = async { doSomeA( ) }
val b = async { doSomeB( ) }
zipper( a.await( ), b.await( ) )
gildor
08/19/2019, 8:35 AMzipper
? There is List<Deferred>.awaitAll()
for this
Also what is your implementation and how you check it?Amanjeet Singh
08/19/2019, 8:41 AMgildor
08/19/2019, 8:44 AMwill this make them execute parallellysee, they will run concurrently, but it doesn’t mean they will run in parallel (this depends on type of opertion, dispatcher etc)
Marko Mitic
08/19/2019, 9:18 AMrunBlocking
block?Amanjeet Singh
08/19/2019, 10:18 AMMarko Mitic
08/19/2019, 10:23 AMdelay(1)
after print
you'll get different results - your loop completes too soon for treading to be noticedgildor
08/19/2019, 10:31 AMAmanjeet Singh
08/19/2019, 5:49 PM