mirror of
https://github.com/tokio-rs/tokio.git
synced 2026-08-26 00:00:16 +02:00
sync: add #[must_use] to Notified (#6828)
This commit is contained in:
@@ -379,6 +379,7 @@ impl Drop for NotifyWaitersList<'_> {
|
|||||||
/// This future is fused, so once it has completed, any future calls to poll
|
/// This future is fused, so once it has completed, any future calls to poll
|
||||||
/// will immediately return `Poll::Ready`.
|
/// will immediately return `Poll::Ready`.
|
||||||
#[derive(Debug)]
|
#[derive(Debug)]
|
||||||
|
#[must_use = "futures do nothing unless you `.await` or poll them"]
|
||||||
pub struct Notified<'a> {
|
pub struct Notified<'a> {
|
||||||
/// The `Notify` being received on.
|
/// The `Notify` being received on.
|
||||||
notify: &'a Notify,
|
notify: &'a Notify,
|
||||||
|
|||||||
Reference in New Issue
Block a user