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;
1616#[ cfg( all( feature = "server" , any( feature = "http1" , feature = "http2" ) ) ) ]
1717pub ( crate ) mod date;
1818pub ( crate ) mod io;
19+ #[ cfg( all( any( feature = "client" , feature = "server" ) , feature = "http1" ) ) ]
1920pub ( crate ) mod task;
2021#[ cfg( any(
2122 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" ) ) ]
21use std:: task:: { Context , Poll } ;
32
43/// A function to help "yield" a future, such that it is re-scheduled immediately.
54///
65/// Useful for spin counts, so a future doesn't hog too much time.
7- #[ cfg( all( any( feature = "client" , feature = "server" ) , feature = "http1" ) ) ]
86pub ( crate ) fn yield_now ( cx : & mut Context < ' _ > ) -> Poll < std:: convert:: Infallible > {
97 cx. waker ( ) . wake_by_ref ( ) ;
108 Poll :: Pending
You can’t perform that action at this time.
0 commit comments