File tree 2 files changed +11
-0
lines changed
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;
14
14
/// `dur` after that. The stream accounts for time elapsed between calls, and
15
15
/// will adjust accordingly to prevent time skews.
16
16
///
17
+ /// Each interval may be slightly longer than the specified duration, but never
18
+ /// less.
19
+ ///
17
20
/// Note that intervals are not intended for high resolution timers, but rather
18
21
/// they will likely fire some granularity after the exact instant that they're
19
22
/// otherwise indicated to fire at.
20
23
///
24
+ /// See also: [`task::sleep`].
25
+ ///
26
+ /// [`task::sleep`]: ../task/fn.sleep.html
27
+ ///
21
28
/// # Examples
22
29
///
23
30
/// Basic example:
Original file line number Diff line number Diff line change @@ -11,6 +11,10 @@ use crate::io;
11
11
///
12
12
/// [`std::thread::sleep`]: https://doc.rust-lang.org/std/thread/fn.sleep.html
13
13
///
14
+ /// See also: [`stream::interval`].
15
+ ///
16
+ /// [`stream::interval`]: ../stream/fn.interval.html
17
+ ///
14
18
/// # Examples
15
19
///
16
20
/// ```
You can’t perform that action at this time.
0 commit comments