Sign in
android
/
platform
/
system
/
bt
/
ea7ab70a711e642653dd5922b83aa04a53af9e0e
/
.
/
gd
/
rust
/
common
/
src
/
ready.rs
blob: 4e5cb4ceb8ace2eb44e65c9f66e8ce5a3c0c9f18 [
file
] [
log
] [
blame
]
/// 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
,
}
};
}