return coroutineScope { val a: Deferred = async(start = CoroutineStart.LAZY) { doSomeStuff().awaitFirstOrNull() } val b: Deferred> = async(start = CoroutineStart.LAZY) { doSomethingElse() } exampleService.doAlgorithm(a.await()!!, b.await()) }