Skip to content

Instantly share code, notes, and snippets.

Created December 12, 2021 08:19
What would you like to do?
async function solution1() {
for(let i = 0; i < tasksSleepInput.length; i+= chunkSize) {
let batch = tasksSleepInput.slice(i, i + chunkSize);
console.log(`* start running batch ${i}`);
await Promise.all(;
console.log(`* finished running batch ${i}`);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment