1 /// Simplifies polling futures 2 #[macro_export] 3 macro_rules! ready { 4 ($e:expr $(,)?) => { 5 match $e { 6 std::task::Poll::Ready(t) => t, 7 std::task::Poll::Pending => return std::task::Poll::Pending, 8 } 9 }; 10 } 11