Wait waits for the main server goroutine to exit. This should be called after a call to Serve.
()
| 74 | // Wait waits for the main server goroutine to exit. This should be |
| 75 | // called after a call to Serve. |
| 76 | func (s *Server) Wait() { |
| 77 | s.wg.Wait() |
| 78 | } |
| 79 | |
| 80 | // Stop stops the server. Note that this function should only be called once |
| 81 | // and the server should not be used afterwards. |