Bjarne Gelotte
val first: Deferred<Unit> = async { firstTask() } val second: Deferred<Unit> = async { secondTask() } first.await().let { doFirstStuff() } second.await().let { doSecondStuff() }
doFirstStuff()
doSecondStuff()
doSecondStuff
second
uli
A modern programming language that makes developers happier.