Update src/future/timeout.rs

Co-Authored-By: Stjepan Glavina <stjepang@gmail.com>
staging
Yoshua Wuyts 5 years ago committed by GitHub
parent 6b76fb1308
commit 2964e72b00
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -29,7 +29,7 @@ use crate::task::{Context, Poll};
/// # Ok(()) }) }
/// ```
#[cfg_attr(feature = "docs", doc(cfg(unstable)))]
#[cfg(feature = "unstable")]
#[cfg(any(feature = "unstable", feature = "docs"))]
pub async fn timeout<F, T>(dur: Duration, f: F) -> Result<T, TimeoutError>
where
F: Future<Output = T>,

Loading…
Cancel
Save