mirror of
https://github.com/async-rs/async-std.git
synced 2025-01-21 04:53:50 +00:00
Changing method signature
This commit is contained in:
parent
54fa559554
commit
c14c377974
1 changed files with 1 additions and 1 deletions
|
@ -363,7 +363,7 @@ extension_trait! {
|
||||||
"#]
|
"#]
|
||||||
#[cfg(any(feature = "unstable", feature = "docs"))]
|
#[cfg(any(feature = "unstable", feature = "docs"))]
|
||||||
#[cfg_attr(feature = "docs", doc(cfg(unstable)))]
|
#[cfg_attr(feature = "docs", doc(cfg(unstable)))]
|
||||||
fn timeout<F, T>(self, dur: Duration) -> impl Future<Output = Self::Output> [TimeoutFuture<Self>]
|
fn timeout(self, dur: Duration) -> impl Future<Output = Self::Output> [TimeoutFuture<Self>]
|
||||||
where Self: Sized
|
where Self: Sized
|
||||||
{
|
{
|
||||||
TimeoutFuture::new(self, dur)
|
TimeoutFuture::new(self, dur)
|
||||||
|
|
Loading…
Reference in a new issue