PromiseResolver

This is an experimental technologyBecause this technology's specification has not stabilized, check the compatibility table for the proper prefixes to use in various browsers. Also note that the syntax and behavior of an experimental technology is subject to change in future versions of browsers as the spec changes.

The PromiseResolver interface represents an object controlling the state and the result value of a Promise.

[1] Nightly of Gecko 24 got an experimental implementation of PromiseResolver, under the initial name of FutureResolver. It got renamed to its final name in the Nightly of Gecko 25. To disabled, the preference dom.promise.enabled (in Gecko 24, dom.future.enabled) must be switched to false. Note only Nightly and Aurora versions of Firefox get this interface enabled by default. Beta and Release versions of Gecko have them disabled by default.