Anson
Results
2
comments of
Anson
```js /*** async solution ***/ const delay = (ms) => new Promise((resolve) => setTimeout(resolve, ms)); // *** realize part const log = console.log; Promise.prototype.run = Promise.prototype.then; // *** const subFlow...
```js function sendRequest(urls, max, callback) { let cursor = max - 1; urls.slice(0, max).forEach((url) => request(url)); function request(url) { fetch(url).finally(() => { if (++cursor < urls.length) request(urls[cursor]); else if (cursor...