Deferred Object
-
Deferred .deferred.progress( Function progressCallbacks )
Add handlers to be called when the Deferred object generates progress notifications.
-
Deferred .deferred.notifyWith( Object context, Object args )
Call the progressCallbacks on a Deferred object with the given context and
args
. -
Deferred .deferred.notify( Object args )
Call the progressCallbacks on a Deferred object with the given
args
. -
String .deferred.state( )
Determine the current state of a Deferred object.
-
Promise .deferred.pipe( Function doneFilter, Function failFilter, Function progressFilter )
Utility method to filter and/or chain Deferreds.
-
Deferred .deferred.always( Function alwaysCallbacks, Function alwaysCallbacks )
Add handlers to be called when the Deferred object is either resolved or rejected.
-
Promise .promise( String type, Object target )
Return a Promise object to observe when all actions of a certain type bound to the collection, queued or not, have finished.
-
Promise .deferred.promise( Object target )
Return a Deferred's Promise object.
-
Promise jQuery.when( Deferred deferreds )
Provides a way to execute callback functions based on one or more objects, usually Deferred objects that represent asynchronous events.
-
Deferred .deferred.resolveWith( Object context, Array args )
Resolve a Deferred object and call any doneCallbacks with the given
context
andargs
. -
Deferred .deferred.rejectWith( Object context, Array args )
Reject a Deferred object and call any failCallbacks with the given
context
andargs
. -
Deferred .deferred.fail( Function failCallbacks, Function failCallbacks )
Add handlers to be called when the Deferred object is rejected.
-
Deferred .deferred.done( Function doneCallbacks, Function doneCallbacks )
Add handlers to be called when the Deferred object is resolved.
-
Deferred .deferred.then( Function doneCallbacks, Function failCallbacks, Function progressCallbacks )
Add handlers to be called when the Deferred object is resolved or rejected.
-
Deferred .deferred.reject( Object args )
Reject a Deferred object and call any failCallbacks with the given
args
. -
Boolean .deferred.isRejected( )
Determine whether a Deferred object has been rejected.
-
Boolean .deferred.isResolved( )
Determine whether a Deferred object has been resolved.
-
Deferred .deferred.resolve( Object args )
Resolve a Deferred object and call any doneCallbacks with the given
args
.