Close shuts down all broker connections managed by this client. It is required to call this function before a client object passes out of scope, as it will otherwise leak memory. You must close any Producers or Consumers using a client before you close the client.
()
| 122 | // otherwise leak memory. You must close any Producers or Consumers using a client |
| 123 | // before you close the client. |
| 124 | Close() error |
| 125 | |
| 126 | // Closed returns true if the client has already had Close called on it |
| 127 | Closed() bool |
no outgoing calls