-
Notifications
You must be signed in to change notification settings - Fork 135
EagerFutureStream operations on underlying Futures
johnmcclean-aol edited this page Mar 10, 2015
·
2 revisions
EagerFutureSteam operations typically operate on the result of an operation rather than the underlying Stream of CompletableFutures. For example limit works by accepting the first X results and rejecting all subsequent ones.
limitFutures on the other hand operates on the underlying Futures in much the same way as LazyFutureStream limit does. (LazyFutureStream typically operates on the underlying Futures as they can be infinite in size). e.g.
[Behaviour for LazyFutureStream limit and EagerFutureStream limitFutures]
The new Future operations are
limitFutures
skipFutures
zipFutures
zipFuturesWithIndex
duplicateFutures
splitAtFutures
sliceFutures
compared with standard slice
oops - my bad