toPromise

fun <T> Deferred<T>.toPromise(coroutineContext: CoroutineContext): Promise<T>
suspend fun <T> Deferred<T>.toPromise(): Promise<T>
fun Job.toPromise(coroutineContext: CoroutineContext): Promise<Unit>
suspend fun Job.toPromise(): Promise<Unit>

Deprecated

Use CompletableDeferred instead