Replacing channel based graceful shutdown with Context and errgroup based solution
For quite some time, I have been using the following code in my http server application to initiate a graceful shutdown. Stripped off unnecessary codes that aren’t contributing right now.