Fix typo loose to lose
This commit is contained in:
parent
8c1782b50c
commit
b7f40bd2e8
1 changed files with 1 additions and 1 deletions
|
@ -25,7 +25,7 @@ Promise.all(urls.map(url => fetch(url)))
|
||||||
});
|
});
|
||||||
```
|
```
|
||||||
|
|
||||||
The problem is that if any of requests fails, then `Promise.all` rejects with the error, and we loose results of all the other requests. So the code above is not fault-tolerant, just like the one in the previous task.
|
The problem is that if any of requests fails, then `Promise.all` rejects with the error, and we lose results of all the other requests. So the code above is not fault-tolerant, just like the one in the previous task.
|
||||||
|
|
||||||
Modify the code so that the array in the line `(*)` would include parsed JSON for successful requests and error for errored ones.
|
Modify the code so that the array in the line `(*)` would include parsed JSON for successful requests and error for errored ones.
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue