Interface: Promise

Promise

A defered asynchronous call
Source:

Methods

log() → {Promise}

Logs the response to the browsers console; useful for debugging.
Source:
Returns:
Type
Promise

then(successCallback, errorCallbackopt, notifyCallbackopt) → {Promise}

Defines callback functions for the promise.
Parameters:
Name Type Attributes Description
successCallback function gets called the response is success
errorCallback function <optional>
gets called when the reponse errors
notifyCallback function <optional>
gets called to indicate some kind of progress
Source:
Returns:
Type
Promise