summaryrefslogtreecommitdiffstats
path: root/vendor/tokio/src/macros/ready.rs
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/tokio/src/macros/ready.rs')
-rw-r--r--vendor/tokio/src/macros/ready.rs8
1 files changed, 8 insertions, 0 deletions
diff --git a/vendor/tokio/src/macros/ready.rs b/vendor/tokio/src/macros/ready.rs
new file mode 100644
index 000000000..1f48623b8
--- /dev/null
+++ b/vendor/tokio/src/macros/ready.rs
@@ -0,0 +1,8 @@
+macro_rules! ready {
+ ($e:expr $(,)?) => {
+ match $e {
+ std::task::Poll::Ready(t) => t,
+ std::task::Poll::Pending => return std::task::Poll::Pending,
+ }
+ };
+}