mirror of
https://github.com/tokio-rs/tokio.git
synced 2026-08-17 00:00:11 +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
|
||||
/// will immediately return `Poll::Ready`.
|
||||
#[derive(Debug)]
|
||||
#[must_use = "futures do nothing unless you `.await` or poll them"]
|
||||
pub struct Notified<'a> {
|
||||
/// The `Notify` being received on.
|
||||
notify: &'a Notify,
|
||||
|
||||
Reference in New Issue
Block a user