Skip to content

PaginatedList[A: Any val]

[Source]

A page of results from a paginated GitHub API endpoint. Use prev_page() and next_page() to navigate between pages; each returns a Promise for the adjacent page, or None if no such page exists.

class val PaginatedList[A: Any val]

Public fields

let results: Array[A] val

[Source]


Public Functions

prev_page

[Source]

Fetches the previous page, or returns None if on the first page.

fun box prev_page()
: (Promise[(PaginatedList[A] val | RequestError val)] tag | None val)

Returns


next_page

[Source]

Fetches the next page, or returns None if on the last page.

fun box next_page()
: (Promise[(PaginatedList[A] val | RequestError val)] tag | None val)

Returns