forEach() and peek() stream methods give the application callback a Cache and allow side-effects, but do not accept a CompletionStage return value, so user code is almost forced to block.
Because of this, the callback should run on a blocking thread.
- is related to
ISPN-13397 Parallel streams start too many segments at once
- relates to
ISPN-13399 Scattered cache prefetch publisher blocks