T - the type of object yielded by next()public interface CloseableAsyncIterator<T> extends java.lang.AutoCloseable, AsyncIterator<T>
AsyncIterator that must be closed once no longer in use in order to free
any associated resources.| Modifier and Type | Method and Description |
|---|---|
default void |
cancel()
Alias for
close(). |
void |
close()
Cancels any outstanding asynchronous work, closes the iterator, and frees any associated
resources.
|
hasNext, next, onHasNextvoid close()
close in interface java.lang.AutoCloseabledefault void cancel()
close().cancel in interface AsyncIterator<T>