Close shuts down the producer and waits for any buffered messages to be flushed. You must call this function before a producer object passes out of scope, as it may otherwise leak memory. You must call this before process shutting down, or you may lose messages. You must call this before calling Clo
()
| 47 | // shutting down, or you may lose messages. You must call this before calling |
| 48 | // Close on the underlying client. |
| 49 | Close() error |
| 50 | |
| 51 | // Input is the input channel for the user to write messages to that they |
| 52 | // wish to send. |
no outgoing calls