Interface AsyncIterator<T>


  • public interface AsyncIterator<T>
    Asynchronous iterator.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      java.util.concurrent.CompletableFuture<java.lang.Boolean> hasNext()
      Returns whether the iterator has a next item.
      java.util.concurrent.CompletableFuture<T> next()
      Returns the next item in the iterator.
    • Method Detail

      • hasNext

        java.util.concurrent.CompletableFuture<java.lang.Boolean> hasNext()
        Returns whether the iterator has a next item.
        Returns:
        whether a next item exists in the iterator
      • next

        java.util.concurrent.CompletableFuture<T> next()
        Returns the next item in the iterator.
        Returns:
        the next item in the iterator