pub async fn run_with_timeout( timeout: Duration, future: impl Future<Output = ()>, )
Run the given future and panic if the timeout is hit.
future
timeout