We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0760c90 commit 5dea441Copy full SHA for 5dea441
1-js/11-async/08-async-await/04-promise-all-failure/solution.md
@@ -46,7 +46,7 @@ It may be important that all queries complete, especially if some of them make i
46
47
So we should wait until all promises are settled before going further with the execution and eventually disconnecting.
48
49
-Here's another implementation. It also resolves with the first error, but waits until all promises are settled.
+Here's another implementation. It behaves similar to `Promise.all` - also resolves with the first error, but waits until all promises are settled.
50
51
```js
52
function customPromiseAllWait(promises) {
@@ -82,4 +82,7 @@ function customPromiseAllWait(promises) {
82
83
Now `await customPromiseAllWait(...)` will stall the execution until all queries are processed.
84
85
-This is the most reliable approach.
+This is a more reliable approach.
86
+
87
+Lastly, if we'd like to know about all the errors, e.g. for logging purposes, we can use `Promise.allSettled`.
88
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル
0 commit comments