Round 1
Questions:
Implement a function called parallelLimit
that takes two parameters:
tasks
: An array of functions that return promiseslimit
: Maximum number of tasks to run in parallel
The parallelLimit
function should execute the tasks in parallel, but limit the number of concurrent tasks to limit
. The function should return a promise that resolves to an array of results, where each result is either the resolved value of the task.
More details here - Parallel-task-limit
Candidate's Approach
No approach provided.
Interviewer's Feedback
No feedback provided.