|
|
@ -152,7 +152,7 @@ extension_trait! {
|
|
|
|
#[cfg_attr(feature = "docs", doc(cfg(unstable)))]
|
|
|
|
#[cfg_attr(feature = "docs", doc(cfg(unstable)))]
|
|
|
|
fn delay(self, dur: Duration) -> impl Future<Output = Self::Output> [DelayFuture<Self>]
|
|
|
|
fn delay(self, dur: Duration) -> impl Future<Output = Self::Output> [DelayFuture<Self>]
|
|
|
|
where
|
|
|
|
where
|
|
|
|
Self: Future + Sized
|
|
|
|
Self: Sized,
|
|
|
|
{
|
|
|
|
{
|
|
|
|
DelayFuture::new(self, dur)
|
|
|
|
DelayFuture::new(self, dur)
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -173,10 +173,13 @@ extension_trait! {
|
|
|
|
/// ```
|
|
|
|
/// ```
|
|
|
|
#[cfg(feature = "unstable")]
|
|
|
|
#[cfg(feature = "unstable")]
|
|
|
|
#[cfg_attr(feature = "docs", doc(cfg(unstable)))]
|
|
|
|
#[cfg_attr(feature = "docs", doc(cfg(unstable)))]
|
|
|
|
fn flatten(self) -> impl Future<Output = <<Self as Future>::Output as IntoFuture>::Output> [FlattenFuture<Self, <<Self as Future>::Output as IntoFuture>::Future>]
|
|
|
|
fn flatten(
|
|
|
|
|
|
|
|
self,
|
|
|
|
|
|
|
|
) -> impl Future<Output = <Self::Output as IntoFuture>::Output>
|
|
|
|
|
|
|
|
[FlattenFuture<Self, <Self::Output as IntoFuture>::Future>]
|
|
|
|
where
|
|
|
|
where
|
|
|
|
Self: Future + Sized,
|
|
|
|
Self: Sized,
|
|
|
|
<Self as Future>::Output: IntoFuture
|
|
|
|
<Self as Future>::Output: IntoFuture,
|
|
|
|
{
|
|
|
|
{
|
|
|
|
FlattenFuture::new(self)
|
|
|
|
FlattenFuture::new(self)
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -214,7 +217,7 @@ extension_trait! {
|
|
|
|
#[cfg_attr(feature = "docs", doc(cfg(unstable)))]
|
|
|
|
#[cfg_attr(feature = "docs", doc(cfg(unstable)))]
|
|
|
|
fn race<F>(
|
|
|
|
fn race<F>(
|
|
|
|
self,
|
|
|
|
self,
|
|
|
|
other: F
|
|
|
|
other: F,
|
|
|
|
) -> impl Future<Output = <Self as std::future::Future>::Output> [Race<Self, F>]
|
|
|
|
) -> impl Future<Output = <Self as std::future::Future>::Output> [Race<Self, F>]
|
|
|
|
where
|
|
|
|
where
|
|
|
|
Self: std::future::Future + Sized,
|
|
|
|
Self: std::future::Future + Sized,
|
|
|
@ -258,7 +261,7 @@ extension_trait! {
|
|
|
|
"#]
|
|
|
|
"#]
|
|
|
|
#[cfg(feature = "unstable")]
|
|
|
|
#[cfg(feature = "unstable")]
|
|
|
|
#[cfg_attr(feature = "docs", doc(cfg(unstable)))]
|
|
|
|
#[cfg_attr(feature = "docs", doc(cfg(unstable)))]
|
|
|
|
fn try_race<F: std::future::Future, T, E>(
|
|
|
|
fn try_race<F, T, E>(
|
|
|
|
self,
|
|
|
|
self,
|
|
|
|
other: F
|
|
|
|
other: F
|
|
|
|
) -> impl Future<Output = <Self as std::future::Future>::Output> [TryRace<Self, F>]
|
|
|
|
) -> impl Future<Output = <Self as std::future::Future>::Output> [TryRace<Self, F>]
|
|
|
|