Skip to content

Commit f2e3e70

Browse files
committed
cross-docs
Signed-off-by: Yoshua Wuyts <[email protected]>
1 parent 147ee6d commit f2e3e70

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

Diff for: src/stream/interval.rs

+7
Original file line numberDiff line numberDiff 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:

Diff for: src/task/sleep.rs

+4
Original file line numberDiff line numberDiff 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
/// ```

0 commit comments

Comments
 (0)