forked from mirror/async-std
Merge #189
189: links the timeout docs to each other r=yoshuawuyts a=yoshuawuyts Was talking in chat about futures timeouts, and apparently folks missed we had two different timeout functions. This links them to each other so if you find one, you also become aware of the other. Thanks! Co-authored-by: Yoshua Wuyts <yoshuawuyts@gmail.com>
This commit is contained in:
commit
4241f64b1b
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