We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ce1d5ed commit 5e80c65Copy full SHA for 5e80c65
library/core/src/task/poll.rs
@@ -39,15 +39,15 @@ impl<T> Poll<T> {
39
40
/// Returns `true` if this is `Poll::Ready`
41
#[inline]
42
- #[rustc_const_stable(feature = "const_poll", since = "1.48.0")]
+ #[rustc_const_stable(feature = "const_poll", since = "1.49.0")]
43
#[stable(feature = "futures_api", since = "1.36.0")]
44
pub const fn is_ready(&self) -> bool {
45
matches!(*self, Poll::Ready(_))
46
}
47
48
/// Returns `true` if this is `Poll::Pending`
49
50
51
52
pub const fn is_pending(&self) -> bool {
53
!self.is_ready()
0 commit comments