ResetServer resets the server, clearing all registered objects. It stops the old server asynchronously.
()
| 61 | // ResetServer resets the server, clearing all registered objects. It stops the |
| 62 | // old server asynchronously. |
| 63 | func (s *Server) ResetServer() { |
| 64 | if old := s.server.Swap(urpc.NewServer()); old != nil { |
| 65 | go old.Stop(0) |
| 66 | } |
| 67 | } |
| 68 | |
| 69 | // FD returns the file descriptor that the server is running on. |
| 70 | func (s *Server) FD() int { |
no test coverage detected