jQuery API

deferred.resolve()

deferred.resolve( args ) Returns: Deferred

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

  • version added: 1.5deferred.resolve( args )

    args Optional arguments that are passed to the doneCallbacks.

When the Deferred is resolved, any doneCallbacks added by deferred.then or deferred.done are called. Callbacks are executed in the order they were added. Each callback is passed the args from the .resolve(). Any doneCallbacks added after the Deferred enters the resolved state are executed immediately when they are added, using the arguments that were passed to the .resolve() call. For more information, see the documentation for Deferred object.

Support and Contributions

Need help with deferred.resolve() or have a question about it? Visit the jQuery Forum or the #jquery channel on irc.freenode.net.

Think you've discovered a jQuery bug related to deferred.resolve()? Report it to the jQuery core team.

Found a problem with this documentation? Report it on the GitHub issue tracker