Created
December 12, 2021 08:22
-
-
Save exhesham/674c5fe0257cebd81f0ec056963b2aee to your computer and use it in GitHub Desktop.
sol2-configtasks.ts
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
let idx =1, tasksQueue = Array(numberOfTasks).fill(1) | |
.map(v => Math.round(Math.random() * 30) + v) | |
.map(v => (() => taskExecutor({delay: v, index: `${idx++}` }))); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment