concept Promise object in category jQuery
appears as: The Promise object, Promise object, A Promise object, Promise objects

This is an excerpt from Manning's book jQuery in Action, Third Edition.
Table 8.1. The properties and the values, in alphabetic order, allowed in the options parameter
Property
Value
always (Function) A function called when the animation completes or stops without completing. The Promise object passed to it is either resolved or rejected (we’ll discuss this concept in chapter 13). complete (Function) A function called when the animation is completed. done (Function) A function called when the animation completes, which means when its Promise object is resolved. duration (String|Number) The duration of the effect as a number of milliseconds or as one of the predefined strings. Same as explained before. easing (String) The function name to use when performing the transition from the visible state to the hidden state. Same as explained before. fail (Function) A function invoked when the animation fails to complete. The Promise object passed to it is rejected. progress (Function) A function executed after each step of the animation. The function is called only once per animated element regardless of the number of animated properties. queue (Boolean|String) A Boolean specifying whether the animation has to be placed in the effects queue (more on this in a later section). If the value passed is false, the animation will begin immediately. The default value is true. In case a string is passed, the animation is added to the queue represented by that string. When a custom queue name is used, the animation does not automatically start. specialEasing (Object) A map of one or more CSS properties whose values are easing functions. start (Function) A function invoked when the animation begins. step (Function) A function executed for each animated property of each animated element.
While progressing through this chapter, you’ll note that the terminology might be confusing and that the concept of promises doesn’t map one to one with the Promise object, which admittedly is weird. You’ll also need to learn several new terms. Don’t be scared, though. The text is filled with several examples and extensive explanations that will help you with the learning process.
To achieve this goal, you need to return the Promise object of the Deferred you’ve created in your timeout function, not the Deferred itself. To be able to do that, we need to introduce you to another method called deferred.promise().