T- the type of element
R- the type of the result
@FunctionalInterface public static interface AsyncFoldLeft.Operation<T,R>
The operation to invoke for each element.
void apply(R result, T element, AsyncFoldLeft.Loop<R> loop)
Processes the given
The processing of the element must produce a result that is the reduction
of the accumulated
result with the result of the processing of the
After the processing of the given element, the implementation must decide whether to continue with or break out of the iteration (with the reduced result) or to fail the iteration (with an exception).
result- the accumulated result so far
element- the element to process
loop- the control object that continues or breaks the iteration
Copyright © 2008–2023 The CometD Project. All rights reserved.