Update documentation for Shutdown.

This completes issue #101.
Fixes #101
This commit is contained in:
Miek Gieben 2014-08-19 22:08:13 +01:00
parent eed2b9aeec
commit 01bbcbef60
1 changed files with 3 additions and 2 deletions

View File

@ -300,8 +300,9 @@ func (srv *Server) ActivateAndServe() error {
return &Error{err: "bad listeners"}
}
// Shutdown shuts down a server. After a call to Shutdown, ListenAndServe and
// ActivateAndServe will return.
// Shutdown gracefully shuts down a server. After a call to Shutdown, ListenAndServe and
// ActivateAndServe will return. All in progress queries are completed before the server
// is taken down.
func (srv *Server) Shutdown() {
c := new(Client)
c.Net = srv.Net