You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As mentioned in the subject, this is not an issue; rather is it a suggestion related to issue #5 which is closed since quite a bit of time now.
I think that in order to improve the ergonomics of the crate, it might be worth it to just hide the fact that some paging occurs under the hood and fetch data on demand. That is, rather than returning a collection of events, the api would return a stream of events (we're using async+tokio anyways).
Should it be of any interest to you or the apca users community, I readily have a generic working solution for this issue in apca_datav2 (look at PagedStream<T> lines 266+ in this file).
If you don't like the idea, I'd totally understand that you'd just reject/close this issue.
The text was updated successfully, but these errors were encountered:
As mentioned in the subject, this is not an issue; rather is it a suggestion related to issue #5 which is closed since quite a bit of time now.
I think that in order to improve the ergonomics of the crate, it might be worth it to just hide the fact that some paging occurs under the hood and fetch data on demand. That is, rather than returning a collection of events, the api would return a stream of events (we're using async+tokio anyways).
Should it be of any interest to you or the
apca
users community, I readily have a generic working solution for this issue inapca_datav2
(look atPagedStream<T>
lines 266+ in this file).If you don't like the idea, I'd totally understand that you'd just reject/close this issue.
The text was updated successfully, but these errors were encountered: