Interface AsyncFoldLeft.Loop<R>

Type Parameters:
R - the type of the result
Enclosing class:
AsyncFoldLeft

public 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).

  • Method Summary

    Modifier and Type Method Description
    default void fail​(java.lang.Throwable failure)  
    default void leave​(R r)  
    default void proceed​(R r)  
  • Method Details

    • proceed

      default void proceed​(R r)
    • leave

      default void leave​(R r)
    • fail

      default void fail​(java.lang.Throwable failure)