Categories
javascript

Promises in Javascript

I spent today implementing CommonsJS/PromisesA on top of Ext-JS. They’re a really powerful metaphor for asynchronous work. Previously I’d made a WorkQueue which took tasks serially. This is still useful where we have a single WorkQueue that producers can keep adding tasks to. Promises are useful where you have complex dependency chains. The one I […]