pub async fn with_graceful_shutdown( fut: impl Future<Output = Result<()>>, ) -> Result<()>
Run a future with graceful shutdown.