📜  promise.all 与 promise.allsettled - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:01:22.056000             🧑  作者: Mango

代码示例1
Promise.all()
/*will reject as soon as one of the Promises in the array rejects.*/
Promise.allSettled()
/*
1-will never reject, it will resolve once all Promises in the array
have either rejected or resolved.
2- DONT NEED CATCH BLOCK */