YouTip LogoYouTip

Misc Deferred Notifywith

# jQuery deferred.notifyWith() Method [![Image 3: jQuery Misc Methods](#)jQuery Misc Methods](#) * * * ## Definition and Usage The `deferred.notifyWith()` function invokes the callback functions (progressCallbacks) on a deferred object with a given context and arguments. **Note:** 1. Typically, only the creator of the deferred object can call this method. 2. You can prevent other code from changing the deferred object's state or reporting its state by returning a restricted Promise object via `deferred.promise()`. 3. When `deferred.notifyWith` is called, any progressCallbacks added via `deferred.then` or `deferred.progress` are executed in the order they were added. Arguments are passed to each callback function via `.notifyWith()`. Once the deferred object has been resolved or rejected, any subsequent calls to `.notifyWith()` (or adding progressCallbacks) are ignored. * * * ## Syntax `deferred.notifyWith( context [, args ] )` | Parameter | Description | | :--- | :--- | | _context_ | Object type. The `this` object passed to the in-progress callbacks. | | _args_ | Object type. Optional arguments to pass to the in-progress callbacks. | * * jQuery Misc Methods](#)
← Docker Install TomcatMisc Deferred Isresolved β†’