Skip to content

Commit

Permalink
Fixes #1606
Browse files Browse the repository at this point in the history
  • Loading branch information
petkaantonov committed Oct 1, 2019
1 parent 0a85236 commit 4df279b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/settle.js
Expand Up @@ -45,6 +45,10 @@ Promise.settle = function (promises) {
return new SettledPromiseArray(promises).promise();
};

Promise.allSettled = function (promises) {
return new SettledPromiseArray(promises).promise();
};

Promise.prototype.settle = function () {
return Promise.settle(this);
};
Expand Down

0 comments on commit 4df279b

Please sign in to comment.