External: Promise

Promise

A promise object provided by the q promise library.

Source:

Example

aPromise
     .then(function (result) {
         //process result
     })
     .catch(function (error) {
         //process error
     });