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