Skip to content

Commit

Permalink
time: add a comment to Interval::tick example (#4951)
Browse files Browse the repository at this point in the history
  • Loading branch information
clintfred committed Aug 27, 2022
1 parent a3411a4 commit 505cc09
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tokio/src/time/interval.rs
Expand Up @@ -423,6 +423,7 @@ impl Interval {
/// let mut interval = time::interval(Duration::from_millis(10));
///
/// interval.tick().await;
/// // approximately 0ms have elapsed. The first tick completes immediately.
/// interval.tick().await;
/// interval.tick().await;
///
Expand Down

0 comments on commit 505cc09

Please sign in to comment.