You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since Gatherers are likely to be a thing next year - it's time to think how to leverage them.
The lack of such generic intermediate operation is the main driver that made me roll forward with the idea to push mapping into the collect phase. So, once that JEP is live, it would make sense to perform mapping inside gather, return results wrapped in single CompletableFuture and then use a dedicated Collector to combine them into a single CompletableFuture with a list of results
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Since Gatherers are likely to be a thing next year - it's time to think how to leverage them.
The lack of such generic intermediate operation is the main driver that made me roll forward with the idea to push mapping into the collect phase. So, once that JEP is live, it would make sense to perform mapping inside
gather
, return results wrapped in singleCompletableFuture
and then use a dedicatedCollector
to combine them into a singleCompletableFuture
with a list of resultsBeta Was this translation helpful? Give feedback.
All reactions