Processes an array of items in chunks, yielding to the main thread between chunks. Enables progress tracking and cancellation for long-running batch operations.
Array of items to process
Async function to process each chunk of items
Configuration options for chunking and cancellation
Promise resolving to array of results from the processor function
AbortError if the operation is cancelled via signal.abort()
Processes an array of items in chunks, yielding to the main thread between chunks. Enables progress tracking and cancellation for long-running batch operations.