Class Promise models a promise for a future value. This class has platform specific behaviors.
Create a new promise.
The identifier of the promise
Add a handler to catch an error.
the error handler.
Set the identifier.
Add handlers to process the response or catch an error.
the response handler.
the optional error handler.
Class Promise models a promise for a future value. This class has platform specific behaviors.