@@ -144,8 +144,8 @@ extension_trait! {
144
144
/// dbg!(a.await);
145
145
/// # })
146
146
/// ```
147
+ #[ cfg( all( feature = "std" , feature = "unstable" ) ) ]
147
148
#[ cfg_attr( feature = "docs" , doc( cfg( unstable) ) ) ]
148
- #[ cfg( any( feature = "unstable" , feature = "docs" ) ) ]
149
149
fn delay( self , dur: Duration ) -> impl Future <Output = Self :: Output > [ DelayFuture <Self >]
150
150
where
151
151
Self : Future + Sized
@@ -167,8 +167,8 @@ extension_trait! {
167
167
/// assert_eq!(future.await, 1);
168
168
/// # })
169
169
/// ```
170
+ #[ cfg( feature = "unstable" ) ]
170
171
#[ cfg_attr( feature = "docs" , doc( cfg( unstable) ) ) ]
171
- #[ cfg( any( feature = "unstable" , feature = "docs" ) ) ]
172
172
fn flatten( self ) -> impl Future <Output = <<Self as Future >:: Output as IntoFuture >:: Output > [ FlattenFuture <Self , <<Self as Future >:: Output as IntoFuture >:: Future >]
173
173
where
174
174
Self : Future + Sized ,
@@ -206,7 +206,7 @@ extension_trait! {
206
206
# });
207
207
```
208
208
"# ]
209
- #[ cfg( any ( feature = "unstable" , feature = "docs" ) ) ]
209
+ #[ cfg( feature = "unstable" ) ]
210
210
#[ cfg_attr( feature = "docs" , doc( cfg( unstable) ) ) ]
211
211
fn race<F >(
212
212
self ,
@@ -252,7 +252,7 @@ extension_trait! {
252
252
# Ok(()) }) }
253
253
```
254
254
"# ]
255
- #[ cfg( any ( feature = "unstable" , feature = "docs" ) ) ]
255
+ #[ cfg( feature = "unstable" ) ]
256
256
#[ cfg_attr( feature = "docs" , doc( cfg( unstable) ) ) ]
257
257
fn try_race<F : std:: future:: Future , T , E >(
258
258
self ,
0 commit comments