File tree Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -14,10 +14,17 @@ use futures_timer::Delay;
1414/// `dur` after that. The stream accounts for time elapsed between calls, and
1515/// will adjust accordingly to prevent time skews.
1616///
17+ /// Each interval may be slightly longer than the specified duration, but never
18+ /// less.
19+ ///
1720/// Note that intervals are not intended for high resolution timers, but rather
1821/// they will likely fire some granularity after the exact instant that they're
1922/// otherwise indicated to fire at.
2023///
24+ /// See also: [`task::sleep`].
25+ ///
26+ /// [`task::sleep`]: ../task/fn.sleep.html
27+ ///
2128/// # Examples
2229///
2330/// Basic example:
Original file line number Diff line number Diff line change @@ -11,6 +11,10 @@ use crate::io;
1111///
1212/// [`std::thread::sleep`]: https://doc.rust-lang.org/std/thread/fn.sleep.html
1313///
14+ /// See also: [`stream::interval`].
15+ ///
16+ /// [`stream::interval`]: ../stream/fn.interval.html
17+ ///
1418/// # Examples
1519///
1620/// ```
You can’t perform that action at this time.
0 commit comments