T
- the type of element yielded from iterationpublic interface AsyncIterable<T>
extends java.lang.Iterable<T>
Modifier and Type | Method and Description |
---|---|
java.util.concurrent.CompletableFuture<java.util.List<T>> |
asList()
Asynchronously return the results of this operation as a
List . |
AsyncIterator<T> |
iterator()
Gets a non-blocking iterator to be used to enumerate all values.
|
AsyncIterator<T> iterator()
iterator
in interface java.lang.Iterable<T>
java.util.concurrent.CompletableFuture<java.util.List<T>> asList()
List
. This is
added as a convenience to users and an opportunity for providers
of this interface to optimize large operations.CompletableFuture
that will be set to contents of this operationAsyncUtil.collect(AsyncIterable)