CompletableDeferred

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

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

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

Creates an already completedCompletableDeferred with a given value.