Description

The deferred.resolve() Deferred method, resolve a Deferred object and calls any doneCallbacks with the specified arguments.

Only the creator of a Deferred object should call this method. Other code can be stopped from changing Deferred object state or from reporting
Deferred object status by returning a restricted Promise object through the deferred.promise() method.

Parameters

Return

Resolve a Deferred object and call any doneCallbacks with the specified arguments.

In the example below when we press the left button the first time we create a Deferred object and use some deferred object methods on it. We then resolve
the Deferred object with no arguments and process any doneCallbacks before resolving it.

When we press the right button the first time we create a Deferred object and use some deferred object methods on it. We then resolve
the Deferred object with some arguments and process any doneCallbacks before resolving it.