diff options
Diffstat (limited to 'tokio/src/lib.rs')
-rw-r--r-- | tokio/src/lib.rs | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/tokio/src/lib.rs b/tokio/src/lib.rs index 3614bb22..4be056ec 100644 --- a/tokio/src/lib.rs +++ b/tokio/src/lib.rs @@ -75,6 +75,15 @@ macro_rules! thread_local { ($($tts:tt)+) => { loom::thread_local!{ $($tts)+ } } } +macro_rules! ready { + ($e:expr $(,)?) => { + match $e { + std::task::Poll::Ready(t) => t, + std::task::Poll::Pending => return std::task::Poll::Pending, + } + }; +} + // At the top due to macros #[cfg(test)] #[macro_use] @@ -86,7 +95,7 @@ pub mod blocking; #[cfg(feature = "fs")] pub mod fs; -pub mod future; +mod future; pub mod io; @@ -107,8 +116,6 @@ pub mod runtime; #[cfg(not(loom))] pub mod signal; -pub mod stream; - #[cfg(feature = "sync")] pub mod sync; |