forked from mirror/async-std
links the timeout docs to each other
Signed-off-by: Yoshua Wuyts <yoshuawuyts@gmail.com>
This commit is contained in:
parent
8fe7347771
commit
d68d6bb052
2 changed files with 6 additions and 0 deletions
|
@ -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
|
||||
///
|
||||
/// ```
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue