links the timeout docs to each other

Signed-off-by: Yoshua Wuyts <yoshuawuyts@gmail.com>
This commit is contained in:
Yoshua Wuyts 2019-09-13 17:58:03 +02:00
parent 8fe7347771
commit d68d6bb052
No known key found for this signature in database
GPG key ID: 24EA8164F96777ED
2 changed files with 6 additions and 0 deletions

View file

@ -10,6 +10,9 @@ use crate::task::{Context, Poll};
/// Awaits a future or times out after a duration of time.
///
/// If you want to await an I/O future consider using
/// [`io::timeout`](../io/fn.timeout.html) instead.
///
/// # Examples
///
/// ```

View file

@ -7,6 +7,9 @@ use crate::io;
/// Awaits an I/O future or times out after a duration of time.
///
/// If you want to await a non I/O future consider using
/// [`future::timeout`](../future/fn.timeout.html) instead.
///
/// # Examples
///
/// ```no_run