Skip to content

How do I translate a simple server with graceful shutdown to axum 0.7? #2403

Answered by davidpdrsn
ISibboI asked this question in Q&A
Discussion options

You must be logged in to vote

Please see the comment at the top of the file https://github.com/tokio-rs/axum/blob/main/examples/graceful-shutdown/src/main.rs#L8-L9.

If there was an easier way to do it then that's what we'd use in the example. Unfortunately there is not but we're working on adding it #2398. Its currently blocked by hyper.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@ISibboI
Comment options

Answer selected by ISibboI
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants