CompletableDeferred

fun <T> CompletableDeferred(
    parent: Job? = null
): CompletableDeferred<T>
(source)

Creates a CompletableDeferred in an active state. It is optionally a child of a parent job.

fun <T> CompletableDeferred(value: T): CompletableDeferred<T> (source)

Creates an already completed CompletableDeferred with a given value.