irideas/qboot — pull request #1 by akira-cn (2013-07-23 06:21:16+00:00)
Title: add qboot.when

给 qboot 的简易版 promise/A，高级功能中支持join、all、any
用法与when.js兼容
最简单的用法：

var when = qboot.when;
function A(){
var deferred = when.defer();
...... do sth. async. then deferred.resolve(data)
return deferred.promise;
}