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

Add synchronous pipe API #9

Open
sagebind opened this issue Feb 6, 2020 · 1 comment
Open

Add synchronous pipe API #9

sagebind opened this issue Feb 6, 2020 · 1 comment

Comments

@sagebind
Copy link
Owner

sagebind commented Feb 6, 2020

Pipes are also useful in synchronous applications, which could also benefit from our performant rotating buffer implementation.

There's no technical reason why the existing PipeReader and PipeWriter types couldn't implement Read and Write respectively, but I wonder if that might get confusing which trait is being used, since Read::read and AsyncReadExt::read have the same name and argument types.

The API we offer must also allow the possibility of having an async producer and synchronous consumer, or vice versa.

@zicklag
Copy link

zicklag commented Jul 7, 2023

Just wanted to 👍 this, and say that this crate was exactly what I was looking for, except that I have to have a synchronous API.

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

2 participants