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

asyncread + asyncwrite trait impl on GzEncoder and GzDecoder #180

Closed
wants to merge 1 commit into from
Closed

asyncread + asyncwrite trait impl on GzEncoder and GzDecoder #180

wants to merge 1 commit into from

Conversation

yanilov
Copy link

@yanilov yanilov commented Dec 7, 2018

WIP - need to add tests. help appreciated.

@alexcrichton
Copy link
Member

Oops sorry for the delay here! IIRC these weren't added historically because the actual implementations weren't ready for async usage, something about them required something to be synchronous. I sort of forget though which aspect that was, and it may not be true any more...

In any case some tests would be good to add (especially some that limited reads to succeed with maximally one byte at a time), and then this seems fine to add!

@yanilov
Copy link
Author

yanilov commented Dec 26, 2018

You are correct! I experimented with it and I'm getting different results in an asynchronous flow.
I'm closing this PR but keeping the issue open.

@yanilov yanilov closed this Dec 26, 2018
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

Successfully merging this pull request may close these issues.

2 participants