Última atividade 1731093970

Revisão c313118a28ba774b3a0515f431985ff67c8fb52b

Async-2.js Bruto
1import { mapLimit } from "async-es";
2
3// ...or ES2017 async functions
4mapLimit(urls, 5, async function(url) {
5 const response = await fetch(url)
6 return response.body
7}, (err, results) => {
8 if (err) throw err
9 // results is now an array of the response bodies
10 console.log(results)
11})