Package com.apple.foundationdb.async
Interface AsyncIterable<T>
- Type Parameters:
T
- the type of element yielded from iteration
- All Superinterfaces:
Iterable<T>
A collection of elements that can be iterated over in a non-blocking fashion.
-
Method Summary
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Method Details
-
iterator
AsyncIterator<T> iterator()Gets a non-blocking iterator to be used to enumerate all values. -
asList
CompletableFuture<List<T>> asList()Asynchronously return the results of this operation as aList
. 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:
-