We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8fe7347 commit d68d6bbCopy full SHA for d68d6bb
src/future/timeout.rs
@@ -10,6 +10,9 @@ use crate::task::{Context, Poll};
10
11
/// Awaits a future or times out after a duration of time.
12
///
13
+/// If you want to await an I/O future consider using
14
+/// [`io::timeout`](../io/fn.timeout.html) instead.
15
+///
16
/// # Examples
17
18
/// ```
src/io/timeout.rs
@@ -7,6 +7,9 @@ use crate::io;
7
8
/// Awaits an I/O future or times out after a duration of time.
9
+/// If you want to await a non I/O future consider using
+/// [`future::timeout`](../future/fn.timeout.html) instead.
/// ```no_run
0 commit comments