Skip to content

Further reduce dependency on futures and futures-util #3874

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

paolobarbolini
Copy link
Contributor

Continuation of #3721

Is this a breaking change?

No

@paolobarbolini paolobarbolini force-pushed the more-less-futures-util branch 2 times, most recently from e90c61b to 6846087 Compare May 24, 2025 16:03
@paolobarbolini paolobarbolini changed the title Replace some more futures_util APIs with std variants Further reduce dependency on futures and futures-util May 24, 2025
@paolobarbolini paolobarbolini force-pushed the more-less-futures-util branch from 6846087 to d78d453 Compare May 24, 2025 16:26
@@ -103,7 +103,7 @@ impl<'a, T> Stream for TryAsyncStream<'a, T> {
return Poll::Ready(None);
}

match self.future.poll_unpin(cx) {
match Pin::new(&mut self.future).poll(cx) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Preliminary comment: I feel like this is actually a small net-negative to code readability. If there is a real improvement in compile- or run-time performance to getting rid of FutureExt here, I would almost prefer if we created our own FutureExt trait to stick actually-useful methods on.

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.

3 participants