Maps items to results one chunk at a time, yielding to the event loop
between chunks. Results are concatenated in original order.
The mapper receives a whole chunk and returns its mapped results, allowing
per-chunk batch work. Use this for CPU-heavy transforms that would otherwise
run as a single un-yielded .map over a large array.
Maps
itemsto results one chunk at a time, yielding to the event loop between chunks. Results are concatenated in original order.The mapper receives a whole chunk and returns its mapped results, allowing per-chunk batch work. Use this for CPU-heavy transforms that would otherwise run as a single un-yielded
.mapover a large array.