Turns a buffered config into its streaming counterpart: everything stays the same except onEnd, which receives a summary instead of the collected items.
onEnd
Optional
Optional: called once after the last page, or after the consumer stops iterating
Turns a buffered config into its streaming counterpart: everything stays the same except
onEnd, which receives a summary instead of the collected items.