Cody Mikol
04/02/2021, 4:35 PMrunBlocking {
val (foo,bar) = doAsync({ foo() },{ bar() })
val (baz,bax) = doAsync({ baz(foo) },{ bax(bar) })
return listOf(foo,bar,baz,bax)
}
Assuming doAsync runs the inner lambdas concurrently, would runBlocking the outer scope force these to run synchronously ?wasyl
04/02/2021, 4:45 PMwithContext(<http://Dispatchers.IO|Dispatchers.IO>)
for example (unless the async stuff can run in concurrently on one thread)vineethraj49
04/03/2021, 1:10 AMTwoClocks
04/03/2021, 5:18 AM