asyncWithScope

fun <T> CoroutineScope.asyncWithScope(context: CoroutineContext = EmptyCoroutineContext, start: CoroutineStart = CoroutineStart.DEFAULT, block: suspend CoroutineScope.() -> T): Pair<CoroutineScope, Deferred<T>>

Creates a coroutine and returns its future result same as async together with CoroutineScope.

See also

async