mirror of
https://github.com/tokio-rs/tokio.git
synced 2025-09-28 12:10:37 +00:00
sync: add #[must_use]
to Notified
(#6828)
This commit is contained in:
parent
bd4ccae184
commit
5dcc848fc8
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user