asDeferred

fun <T> Promise<T>.asDeferred(): Deferred<T> (source)

Platform and version requirements: JS

Converts this promise value to the instance of Deferred.