Helper for performing asynchronous operations on arrays. This module is intended to allow CPU intensive array operations without blocking the event loop.
How to use
npm install --save async-chunked-array
Each method takes the following parameters:
- collection - the array to operate on.
- chunkLength - how many array items to operate on before breaking and allowing the event loop to become free.
- operation - the function to run against the array / array items.
- callback - runs when the current operation completes.
const arrayHelper =let longArray = ... some long array ...arrayHelperarrayHelperarrayHelper