You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
let handle = axum_server::Handle::default();let handle_clone = handle.clone();
tokio::spawn(asyncmove{// TODO: what you would have put in `with_graceful_shutdown`
handle_clone.graceful_shutdown(Some(Duration::from_secs(1)));});
axum_server::bind(...).handle(handle).serve(...).await
What do you think about adding method
with_graceful_shutdown()
like in Axum?The text was updated successfully, but these errors were encountered: