Lines Matching refs:Promise
30 var p1 = new Promise(function(resolve) { resolve('p1'); });
31 var p2 = new Promise(function(resolve) { resolve('p2'); });
32 var p3 = new Promise(function(resolve) { resolve('p3'); });
33 var p4 = new Promise(function() {});
34 var p5 = new Promise(function() {});
35 var p6 = new Promise(function(_, reject) { reject('p6'); });
36 var p7 = new Promise(function(_, reject) { reject('p7'); });
37 var p8 = new Promise(function(_, reject) { reject('p8'); });
38 var p9 = new Promise(function(resolve) { resolve(p2); });
40 Promise.all([p1, p2, p5]).then(function(result) {
46 Promise.all().then(function() {
50 return Promise.all([]).then(function(localResult) {
58 return Promise.all([p1, p2, p3]).then(function(localResult) {
69 return Promise.all([p1, p6, p5]).then(function(localResult) {
77 return Promise.all([p9]).then(function(localResult) {
87 return Promise.all([p9,,,]).then(function(localResult) {
100 return Promise.all([p9,42]).then(function(localResult) {
110 return Promise.all({}).then(function(localResult) {