def2 = async (CommonPool) {} val def3 = async (CommonPool) {} def1.await() def2.await() def3.await() } joinAll(job1, job2, job3) awaitAll(job1, job2, job3) launch (UI) { val job1 = launch (CommonPool) {} val job2 = launch (CommonPool) {} val job3 = launch (CommonPool) {} job1.join() job2.join() job3.join() }