Paginator

public protocol Paginator

Interface to iterate over the results queried from EditionProvider.

Call next as needed until the Paginator is exhausted (Page.hasNext == false). It provides a Result containing a Page on success.

Note

Calling Editions.updateFeed(...) will render any Paginator object invalid, to keep getting Editions you need to query them again using EditionProvider.editions(...) after an update.
  • Undocumented

    Declaration

    Swift

    func next(callback: @escaping (Result<Page, Error>) -> Void)