async

fun <T> async(block: suspend () -> T): Deferred<T>

Creates a coroutine in the queue and returns its future result as an implementation of Deferred.

Exceptions thrown by block will be caught and represented in the resulting Deferred.