Closed azl397985856 closed 3 years ago
要区别这几个 API,我们首先需要理解一个词 settled。 settled 指的是 resolved 或者 rejected 都可以,只要不是 pending 即可。
有了这个只是就简单了。
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Promise.all 和 Promise.allSettled 有什么区别?
Promise.any 和 Promise.race 有什么区别?