Created
December 12, 2021 08:18
-
-
Save exhesham/b25b6149a8ff19b9b362ce4e0d715004 to your computer and use it in GitHub Desktop.
batch run 1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const chunkSize = 3; | |
const numberOfTasks = 10; | |
let tasksSleepInput = Array(numberOfTasks).fill(30).map(v => ({delay: v, index: '' })); | |
// add indices | |
Object.keys(tasksSleepInput).forEach(k => tasksSleepInput[Number.parseInt(k)].index = k); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment