Iterator
Iterates through a list of Element items asynchronously.
hasNext and hasPrevious refer to the last element computed by a previous call to any of both methods.
Inheritors
Functions
Returns true if the iterator has a previous element, suspending the caller while processing it.
Retrieves the element computed by a preceding call to hasNext, or throws an IllegalStateException if hasNext was not invoked. This method should only be used in pair with hasNext.
Advances to the next item and returns it, or null if we reached the end.
Retrieves the element computed by a preceding call to hasPrevious, or throws an IllegalStateException if hasPrevious was not invoked. This method should only be used in pair with hasPrevious.
Advances to the previous item and returns it, or null if we reached the beginning.