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.race([p4, p5]).then(function(localResult) {
47 Promise.race([]).then(function(localResult) {
53 Promise.race().then(function(localResult) {
58 return Promise.race({}).then(function(localResult) {
64 return Promise.race([p4, p1, p6]).then(function(localResult) {
72 return Promise.race([p4, p6, p1]).then(function(localResult) {
80 return Promise.race([p9]).then(function(localResult) {
89 return Promise.race([p4,,]).then(function(localResult) {
99 return Promise.race([p4,42]).then(function(localResult) {