Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make b2.Reader an io.WriterTo #27

Open
kurin opened this issue Sep 16, 2017 · 3 comments
Open

make b2.Reader an io.WriterTo #27

kurin opened this issue Sep 16, 2017 · 3 comments

Comments

@kurin
Copy link
Owner

kurin commented Sep 16, 2017

When downloading, the reader suffers from head-of-line blocking and has to buffer chunks that may have finished but which can't be flushed yet. If the b2.Reader satisfies io.WriterTo, then (for appropriate writers anyway) it will be able to flush that data as soon as it is available.

@kurin
Copy link
Owner Author

kurin commented Sep 19, 2017

make them WriterAts and ReaderAts while you're having fun in here

@kurin
Copy link
Owner Author

kurin commented Sep 19, 2017

WritersAt and ReadersAt

@kurin
Copy link
Owner Author

kurin commented Sep 20, 2017

w.WriterAt is never going to be feasible with b2's API. r.ReaderAt doesn't really make sense but might still be interesting.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant