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

Proposal: add a poll_read_exact method to AsyncRead #7211

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

a1phyr
Copy link
Contributor

@a1phyr a1phyr commented Mar 11, 2025

Motivation

Similar to std::io::Read::read_exact, this enables optimizing this common use case for some types.

If you wish not having such method stable directly, I can make it available on tokio_unstable only.

@Darksonn Darksonn added A-tokio Area: The main tokio crate M-io Module: tokio/io labels Mar 11, 2025
@Darksonn
Copy link
Contributor

I don't think we want to add this method. Why do you suggest it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-tokio Area: The main tokio crate M-io Module: tokio/io
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants