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

Added AsyncRead and AsyncWrite support for ProgressBar #308

Merged
merged 3 commits into from Sep 18, 2021

Conversation

x0f5c3
Copy link
Contributor

@x0f5c3 x0f5c3 commented Sep 11, 2021

Added support for tokio Read, Write and Seek traits to allow for using the ProgressBar with tokio async io traits by wrapping them in ProgressBarIter.

…ite methods for ProgressBar and implemented AsyncRead, AsyncWrite and AsyncSeek for ProgressBarIter
@djc
Copy link
Collaborator

djc commented Sep 15, 2021

Thanks, this seems reasonable! (I wrote some remarks about tests here that didn't make sense.)

Can you fix up the lint CI job?

@x0f5c3
Copy link
Contributor Author

x0f5c3 commented Sep 18, 2021

I think the CI job should pass now since I moved the async related uses under #[cfg(feature = "tokio")]

@djc
Copy link
Collaborator

djc commented Sep 18, 2021

Just a little formatting left.

@x0f5c3
Copy link
Contributor Author

x0f5c3 commented Sep 18, 2021

Sorry for that, forgot to run cargo fmt, should be fixed now

@djc djc merged commit 33a411b into console-rs:main Sep 18, 2021
@djc
Copy link
Collaborator

djc commented Sep 18, 2021

Thanks!

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.

None yet

2 participants