Skip to content

Refactor graceful shutdown example#994

Merged
VojtechVitek merged 1 commit intogo-chi:masterfrom
mikereid1:update-graceful-shutdown-example
Sep 17, 2025
Merged

Refactor graceful shutdown example#994
VojtechVitek merged 1 commit intogo-chi:masterfrom
mikereid1:update-graceful-shutdown-example

Conversation

@mikereid1
Copy link
Contributor

@mikereid1 mikereid1 commented Apr 29, 2025

The current example for graceful shutdown is a bit convoluted and dated as it doesn't take advantage of signal.NotifyContext

Simplify server shutdown by replacing manual signal handling with `signal.NotifyContext`.
@mikereid1 mikereid1 marked this pull request as ready for review April 29, 2025 19:22
Copy link
Contributor

@VojtechVitek VojtechVitek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Nice work!

@VojtechVitek VojtechVitek merged commit 563ab11 into go-chi:master Sep 17, 2025
@OnatArslan
Copy link

Nice Work!!!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants