Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
net/http: mention RegisterOnShutdown in Shutdown docs #21637
http.Server.RegisterOnShutdown was introduced in 1.9 cycle, but it's not mentioned in the release notes, so it's easy to miss, even if it's useful to you.
Documentation for http.Server.Shutdown (that was introduced in 1.8) states:
IMO this is a good place to mention the new RegisterOnShutdown method to increase awareness of its existence.