File tree Expand file tree Collapse file tree 2 files changed +1
-2
lines changed Expand file tree Collapse file tree 2 files changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ pub(crate) mod buf;
16
16
#[ cfg( all( feature = "server" , any( feature = "http1" , feature = "http2" ) ) ) ]
17
17
pub ( crate ) mod date;
18
18
pub ( crate ) mod io;
19
+ #[ cfg( all( any( feature = "client" , feature = "server" ) , feature = "http1" ) ) ]
19
20
pub ( crate ) mod task;
20
21
#[ cfg( any(
21
22
all( feature = "server" , feature = "http1" ) ,
Original file line number Diff line number Diff line change 1
- #[ cfg( all( any( feature = "client" , feature = "server" ) , feature = "http1" ) ) ]
2
1
use std:: task:: { Context , Poll } ;
3
2
4
3
/// A function to help "yield" a future, such that it is re-scheduled immediately.
5
4
///
6
5
/// Useful for spin counts, so a future doesn't hog too much time.
7
- #[ cfg( all( any( feature = "client" , feature = "server" ) , feature = "http1" ) ) ]
8
6
pub ( crate ) fn yield_now ( cx : & mut Context < ' _ > ) -> Poll < std:: convert:: Infallible > {
9
7
cx. waker ( ) . wake_by_ref ( ) ;
10
8
Poll :: Pending
You can’t perform that action at this time.
0 commit comments