Skip to content

Proposal: add a poll_read_exact method to AsyncRead#7211

Closed
a1phyr wants to merge 4 commits intotokio-rs:masterfrom
a1phyr:poll_read_exact
Closed

Proposal: add a poll_read_exact method to AsyncRead#7211
a1phyr wants to merge 4 commits intotokio-rs:masterfrom
a1phyr:poll_read_exact

Conversation

@a1phyr
Copy link
Copy Markdown
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
Copy Markdown
Member

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

@Darksonn Darksonn closed this Jun 8, 2025
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.

2 participants