Added progress handlers to Q.when

This commit is contained in:
Andrew Gaspar
2013-07-03 00:33:25 -07:00
parent 6fb97f40bf
commit bccbbdaa83
2 changed files with 12 additions and 5 deletions
+4 -1
View File
@@ -86,4 +86,7 @@ Q.all(promiseArray).then(nums => nums.map(num => num.toPrecision(2)).join(','));
Q.all<number>(myNums).then(nums => nums.map(Math.round));
Q.fbind((dateString) => new Date(dateString), "11/11/1991")().then(d => d.toLocaleDateString());
Q.fbind((dateString) => new Date(dateString), "11/11/1991")().then(d => d.toLocaleDateString());
Q.when(8, num => num + "!");
Q.when(Q(8), num => num + "!").then(str => str.split(','));