summaryrefslogtreecommitdiffstats
path: root/tokio-test/src/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tokio-test/src/lib.rs')
-rw-r--r--tokio-test/src/lib.rs10
1 files changed, 10 insertions, 0 deletions
diff --git a/tokio-test/src/lib.rs b/tokio-test/src/lib.rs
index a31b6337..00d38897 100644
--- a/tokio-test/src/lib.rs
+++ b/tokio-test/src/lib.rs
@@ -20,7 +20,17 @@
//! assert_ready!(fut.poll());
//! ```
+macro_rules! ready {
+ ($e:expr) => {
+ match $e {
+ ::std::task::Poll::Ready(t) => t,
+ ::std::task::Poll::Pending => return ::std::task::Poll::Pending,
+ }
+ };
+}
+
pub mod clock;
+pub mod io;
mod macros;
pub mod task;