mirror of
https://github.com/tokio-rs/tokio.git
synced 2026-08-24 00:00:11 +02:00
Set Stream types as must_use
This commit is contained in:
@@ -21,6 +21,7 @@ use reactor::timeout_token::TimeoutToken;
|
||||
/// Note that timeouts are not intended for high resolution timers, but rather
|
||||
/// they will likely fire some granularity after the exact instant that they're
|
||||
/// otherwise indicated to fire at.
|
||||
#[must_use = "streams do nothing unless polled"]
|
||||
pub struct Interval {
|
||||
token: TimeoutToken,
|
||||
next: Instant,
|
||||
|
||||
Reference in New Issue
Block a user