diff options
Diffstat (limited to 'third_party/rust/tokio/src/macros/ready.rs')
-rw-r--r-- | third_party/rust/tokio/src/macros/ready.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/third_party/rust/tokio/src/macros/ready.rs b/third_party/rust/tokio/src/macros/ready.rs new file mode 100644 index 0000000000..1f48623b80 --- /dev/null +++ b/third_party/rust/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, + } + }; +} |