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, onHasNext
void close()
close
in interface java.lang.AutoCloseable
default void cancel()
close()
.cancel
in interface AsyncIterator<T>