use tracing::Instrument;
pub trait AwaitBlocking: IntoFuture {
fn await_blocking(self) -> <Self as IntoFuture>::Output;
}
impl<T: IntoFuture> AwaitBlocking for T {
fn await_blocking(self) -> <Self as IntoFuture>::Output {
futures_executor::block_on(self.into_future().instrument(tracing::Span::current()))
}
}