mirror of
https://github.com/tokio-rs/tokio.git
synced 2026-08-21 00:00:10 +02:00
time: add a comment to Interval::tick example (#4951)
This commit is contained in:
@@ -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;
|
||||
///
|
||||
|
||||
Reference in New Issue
Block a user