Sistemas y Tecnologías Web: Servidor

Master de II. ULL. 1er cuatrimestre. 2020/2021


Organization ULL-MII-SYTWS-2021   Classroom ULL-MII-SYTWS-2021   Campus Virtual SYTWS   Chat Chat   Profesor Casiano

Table of Contents

Descripción de la Práctica p17-t2-async-iteration-and-generators

Description

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

Compare the Performance of Promise.all and for-await-of

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

See

ES6 Modules in Node.JS

Comment with GitHub Utterances

Comment with Disqus

thread de discusion