mirror of
https://github.com/ading2210/libcurl.js.git
synced 2025-05-12 05:50:01 -04:00
8 lines
225 B
JavaScript
8 lines
225 B
JavaScript
async function test() {
|
|
await libcurl.fetch("https://www.example.com/");
|
|
let promises = [];
|
|
for (let i=0; i<10; i++) {
|
|
promises.push(libcurl.fetch("https://www.example.com/"))
|
|
}
|
|
await Promise.all(promises);
|
|
}
|