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 6b76fb1 commit 2964e72Copy full SHA for 2964e72
src/future/timeout.rs
@@ -29,7 +29,7 @@ use crate::task::{Context, Poll};
29
/// # Ok(()) }) }
30
/// ```
31
#[cfg_attr(feature = "docs", doc(cfg(unstable)))]
32
-#[cfg(feature = "unstable")]
+#[cfg(any(feature = "unstable", feature = "docs"))]
33
pub async fn timeout<F, T>(dur: Duration, f: F) -> Result<T, TimeoutError>
34
where
35
F: Future<Output = T>,
0 commit comments