The type of items in the input iterable
Predicate function that determines when to commit a chunk. Called after each item is added to the current chunk. When it returns true, the chunk is committed and a new chunk starts.
The current accumulated chunk
true to commit the chunk, false to continue accumulating
OptionalonOptional callback invoked after each commit completes (success or failure). Receives the result wrapped in a Result type and the commit index.
Result.Ok() on success, Result.Err(error) on failure
Zero-based index of the commit (0 for first chunk, 1 for second, etc.)
Base configuration options shared by both sync and async chunky processing.