SendMessages produces a given set of messages, and returns only when all messages in the set have either succeeded or failed. Note that messages can succeed and fail individually; if some succeed and some fail, SendMessages will return an error.
(msgs []*ProducerMessage)
| 30 | // can succeed and fail individually; if some succeed and some fail, |
| 31 | // SendMessages will return an error. |
| 32 | SendMessages(msgs []*ProducerMessage) error |
| 33 | |
| 34 | // Close shuts down the producer; you must call this function before a producer |
| 35 | // object passes out of scope, as it may otherwise leak memory. |
no outgoing calls