Ember.Deferred Class packages/ember-runtime/lib/mixins/deferred.js:13

Show:

Methods

Show:

reject

Reject a Deferred object and call any failCallbacks with the given args.

resolve

Resolve a Deferred object and call any doneCallbacks with the given args.

then

(resolve, reject)

Add handlers to be called when the Deferred object is resolved or rejected.

Parameters:

resolve Function
a callback function to be called when done
reject Function
a callback function to be called when failed