R
- the type of the resultpublic static interface AsyncFoldLeft.Loop<R>
Controls the iteration over a sequence of elements, allowing to continue the iteration (with a result), break out of the iteration (with a result), or fail the iteration (with an exception).
Modifier and Type | Method and Description |
---|---|
default void |
fail(Throwable failure)
Makes the loop fail (similarly to throwing an exception).
|
default void |
leave(R r)
Makes the loop exit (similarly to the
break statement). |
default void |
proceed(R r)
Makes the loop proceed to the next element (or the end of the loop).
|
default void proceed(R r)
Makes the loop proceed to the next element (or the end of the loop).
r
- the result computed in the current iterationdefault void leave(R r)
Makes the loop exit (similarly to the break
statement).
r
- the result computed in the current iterationdefault void fail(Throwable failure)
Makes the loop fail (similarly to throwing an exception).
failure
- the failure of the current iterationCopyright © 2008–2024 The CometD Project. All rights reserved.