fun <T> Deferred<T>.asPromise(): Promise<T>
Platform and version requirements: JS
Converts this deferred value to the instance of Promise.