Macro wookie::dummy [−][src]
macro_rules! dummy {
($name : ident) => { ... };
($name : ident : $future : expr) => { ... };
}
Expand description
Wraps a future in a single-stepping executor whose waker does nothing and pins it to the stack.
Example
use core::task::Poll;
use wookie::dummy;
dummy!(future: async { true });
assert_eq!(future.poll(), Poll::Ready(true));