Tracking Issue for poll_ready
#72992
Labels
A-async-await
Area: Async & Await
C-tracking-issue
Category: An issue tracking the progress of sth. like the implementation of an RFC
T-libs-api
Relevant to the library API team, which will review and decide on the PR/issue.
This is a tracking issue for
Poll::ready()
(PR #72994).The feature gate for the issue is
#![feature(poll_ready)]
.Steps
Rationale: I have this code in Quinn:
And this would seem quite a bit nicer:
One potential downside is that this adds one more
ready()
afterfutures::ready!()
andfutures::future::ready()
. As it is a method (compared to a free function or a macro), it seems it's still clearly distinct, but could be confusing. It otherwise seems to be the idiomatic naming choice though.The text was updated successfully, but these errors were encountered: