Skip to content

Commit 4df279b

Browse files
committedOct 1, 2019
Fixes #1606
1 parent 0a85236 commit 4df279b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed
 

‎src/settle.js

+4
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,10 @@ Promise.settle = function (promises) {
4545
return new SettledPromiseArray(promises).promise();
4646
};
4747

48+
Promise.allSettled = function (promises) {
49+
return new SettledPromiseArray(promises).promise();
50+
};
51+
4852
Promise.prototype.settle = function () {
4953
return Promise.settle(this);
5054
};

0 commit comments

Comments
 (0)
Please sign in to comment.