briancavalier/when.js — Issue #9: Need support for pipe() and when() 
Author: ThomasBurleson
Created: 2011-12-31 21:43:03+00:00
State: open

jQuery 1.7.x provides futures support (Deferred, Promise) with support for pipe() and when() methods:

pipe( resolveFunc, rejectFunc, progressFunc ) - provides chaining features AND intercept features critical to code clarity.
when( promiseOrFunc1, promiseOrFunc2, ...) - provides feature to parallel process 1 or more functions/futures.

These are used frequently in jQuery solutions. Latest jQuery Deferred is also dependent upon Callback class for robust notifications. Why did you not just grab the jQuery Callback, Deferred, and Promise classes into a stand-alone when.js.

I think when.js would benefit from these also. Thank you for this stand-alone version.

- Thomas Burleson

BTW, another test of these would be sucessful use with QUnit tests for Deferred/Promise:
@see http://jsfiddle.net/ThomasBurleson/4wMU2/