twitch_api icon indicating copy to clipboard operation
twitch_api copied to clipboard

Trait to turn paginated APIs into async streams

Open simonsan opened this issue 3 years ago • 1 comments

'Page_turner' crate helps to abstract away any sort of pagination and allows you to work with such APIs uniformly with the help of async streams. All you need to do is to implement the PageTurner trait.

https://docs.rs/page-turner/latest/page_turner/

Sounds interesting, maybe this could be useful?

simonsan avatar Oct 14 '22 23:10 simonsan

That does seem like an easier (read "better") interface than make_stream

I'm not sure it'd work with https://github.com/twitch-rs/twitch_api/issues/114 though

Emilgardis avatar Oct 15 '22 08:10 Emilgardis