Deferred object manages the state of completed operations, and utilizes construction of event-driven callback queues.
Usage: new $l.deferred()
var promise = new $l.deferred(); promise.done(function (x) { console.log('result is ' + x); }); setTimeout(function () { promise.resolve(5); }, 200);
There was an error while loading. Please reload this page.