/// Run the provided `future` via the `executor` and return the result of the future.
Run the provided `future` via the `executor` and return the result of the future.
Run the provided ` future ` via the ` executor ` and return the result of the future .
pub fn move_executor_forward_and_get<T>(
    executor: &mut TestExecutor,
    future: impl futures::Future<Output = T>,
    panic_msg: &str,
) -> T {
    pin_mut!(future);
    match executor.run_until_stalled(&mut future) {
        Poll::Ready(res) => res,
        _ => panic!("{}", panic_msg),
    }
}
pub fn move_executor_forward_and_get < T > ( executor : & mut TestExecutor , future : impl futures :: Future < Output = T > , panic_msg : & str , ) -> T { pin_mut ! ( future ) ; match executor . run_until_stalled ( & mut future ) { Poll :: Ready ( res ) => res , _ => panic ! ( " " panic_msg ) , } }
Run the provided `future` via the `executor` and return the result of the future.
Run the provided ` future ` via the ` executor ` and return the result of the future .
executor
&mut TestExecutor
future
impl futures::Future<Output = T>
panic_msg
&str