The list entry shape of the paginated endpoint.
Callback that fetches a single page given its 1-based number, perPage, and an optional AbortSignal forwarded from the traversal; return the raw MAL list response ({ data, paging? }).
Optionaloptions: MalPaginateOptions
Optional perPage, startPage, maxPages, concurrency, signal, onPage, onHookError, and diagnostics controls.
Yields MyAnimeList list pages until the list ends or the
maxPageslimit is reached. The generator has no truncation flag. A terminal page has nopaging.nextURL, or is short when the response has nopagingnode. If the limit stops traversal, the last yielded page was full.Use this generator when you do not need to collect every item in memory or want to stop early. The
maxPageslimit bounds requests. The generator keeps up toconcurrencypage requests in flight. The default is1, so requests run sequentially because MAL's rate limit makes look-ahead counterproductive. The generator yields pages in order. If the consumer exits early, a terminal page arrives, or the limit is reached, it waits for already-launched requests and discards their results.The shared
streamNumericPagesengine handles the launch window, terminal page drain, abort bridging, and early-exit cancellation. MAL supplies the terminal predicate: a page ends traversal when it has nopaging.nextURL, is short without apagingnode, or has malformeddata. The generator uses the sameonPage,onHookError, anddiagnosticsoptions as malPaginate. It callsonPageonce per yielded page.