use std::{
future::Future,
pin::pin,
task::{Context, Poll, Waker},
};
pub fn ready<F: Future>(future: F) -> F::Output {
match pin!(future).poll(&mut Context::from_waker(Waker::noop())) {
Poll::Ready(value) => value,
Poll::Pending => panic!("fixture unexpectedly requires an async executor"),
}
}