Interface AsyncIterable<T>

Type Parameters:
T - the type of element yielded from iteration
All Superinterfaces:
Iterable<T>

public interface AsyncIterable<T> extends Iterable<T>
A collection of elements that can be iterated over in a non-blocking fashion.
  • Method Details

    • iterator

      AsyncIterator<T> iterator()
      Gets a non-blocking iterator to be used to enumerate all values.
      Specified by:
      iterator in interface Iterable<T>
      Returns:
      a handle to be used for non-blocking iteration
    • asList

      Asynchronously return the results of this operation as a List. This is added as a convenience to users and an opportunity for providers of this interface to optimize large operations.
      Returns:
      a CompletableFuture that will be set to contents of this operation
      See Also: