forked from mirror/async-std
Update src/future/timeout.rs
Co-Authored-By: Stjepan Glavina <stjepang@gmail.com>
This commit is contained in:
parent
6b76fb1308
commit
2964e72b00
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue