Bjarne Gelotte
04/13/2018, 9:04 AMval first: Deferred<Unit> = async { firstTask() }
val second: Deferred<Unit> = async { secondTask() }
first.await().let { doFirstStuff() }
second.await().let { doSecondStuff() }
In this example, will the doFirstStuff()
always be called before doSecondStuff()
? Or can doSecondStuff
trigger as soon as second
is evaluated (this is what I want to achieve)?uli
04/14/2018, 11:48 AMBjarne Gelotte
04/14/2018, 12:38 PM