Promise icon indicating copy to clipboard operation
Promise copied to clipboard

Polyfill with Promise ECMAScript 2015(ES6) Object Library

Results 1 Promise issues
Sort by recently updated
recently updated
newest added

var promise1 = new Promise(function (resolve) { //异步任务 setTimeout(function () { resolve('foo'); }, 100); }), promise2 = new Promise(function (resolve,reject) { setTimeout(function () { reject('bar');//失败 }, 200); }); Promise.all([promise1, promise2]).then(function...