Runs handler over items one chunk at a time, yielding to the event loop between chunks so long runs do not block the main thread.
handler
items
The handler is awaited for each chunk before moving on. No yield is emitted after the final chunk.
Element type
Source array
Called with each chunk and its zero-based index
Maximum chunk length; must be a positive integer. Defaults to DEFAULT_CHUNK_SIZE
RangeError if chunkSize is not a positive integer
chunkSize
Runs
handleroveritemsone chunk at a time, yielding to the event loop between chunks so long runs do not block the main thread.The handler is awaited for each chunk before moving on. No yield is emitted after the final chunk.