Master de II. ULL. 1er cuatrimestre. 2020/2021
Read the chapter Async iteration and generators of JavaScript.info reproducing the examples and exercises. Submit a report. Here is an example of how to organize your report:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
➜ learning-async-iteration-and-generators git:(main) tree -I node_modules
.
├── 01-recall-iterators
│ ├── README.md
│ └── hello-simple-iterator.js
├── 02-async-iterables
│ ├── README.md
│ ├── hello-async-iterables-2.js
│ └── hello-async-iterables.js
├── 03-recall-generators
│ └── README.md
├── 04-async-generators-finally
│ ├── README.md
│ ├── for-await-with-sync.js
│ ├── hello-async-generator-2.js
│ ├── hello-async-generator-3.js
│ ├── hello-async-generator.js
│ └── hello-async-iterable-range.js
├── 05-real-life-example-paginated-data
│ ├── README.md
│ ├── get-link-example.js
│ ├── package-lock.json
│ ├── package.json
│ └── real-life-example.js
├── 06-all-vs-for-await-performance
│ ├── README.md
│ └── all-vs-for-await-performance.js
├── README.md
└── package.json
Add a section and the corresponding code to compare the performance of for-await-of with Promise.all when given an array of promises. Consider both cases: when a rejection or an error occurs and when all the promises are fulfilled