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.
The text was updated successfully, but these errors were encountered: