最後活躍 1731093970

Async-2.js 原始檔案
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})