Class Promise models a promise for a future value. This class has platform specific behaviors.
Create a new promise.
Optional
The identifier of the promise
Add a handler to catch an error.
the error handler.
Add a finally 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.