By davidwalsh
via davidwalsh.name
Submitted: Dec 03 2012 / 11:09
Deferreds are all the rage in the JavaScript community these days and who can argue? Deferreds, an object representing an asynchronous action, make working with AJAX requests incredibly easy -- no callback hell, no problem passing request information around. What if you want to work with multiple Deferreds though? For example, say you want to execute functionality once multiple AJAX requests complete. The Dojo Toolkit has you covered with dojo/DeferredList, a resource whose API mirrors a single Deferred object but is capable of handling multiple Deferreds.
Tweet
SaveShareSend
Tags: css-html, frameworks, javascript, web 2.0
Add your comment