Exercise: An Asynchronous map()
Practice how to implement a parallel asynchronous version of the Array.map() utility.
We'll cover the following...
Problem statement
Implement a parallel asynchronous version of Array.map() that supports promises and a concurrency limit. The function shouldn’t directly leverage the TaskQueue or TaskQueuePC classes but it can use the underlying patterns. The function, which you’ll define as mapAsync(iterable, callback, concurrency), should accept the following as inputs:
An
iterable, such as an array. ...
Ask