Ends all internal goroutines and wait for them to finish pending works.
()
| 126 | |
| 127 | // Ends all internal goroutines and wait for them to finish pending works. |
| 128 | func (e *AgentClient) Stop() { |
| 129 | e.notificationBatcherCancelFn() |
| 130 | e.notificationBatcher.waitDone() |
| 131 | } |
| 132 | |
| 133 | // AgentError is the JSON object of the response body returned when the HTTP |
| 134 | // status code is not success. It doubles as a Go error. |
no test coverage detected