forEach

public CompletableFuture<Void> forEach(Consumer<? super T> itemAction)

Asynchronously processes each item fetched by this pager. The provided consumer action will be applied to each item sequentially across all pages.

Parameters

itemAction

The action to perform on each item.