Consume will continuously receive messages and handle them with the provided callback function. Consume can be configured using PullConsumeOpt options: - Error handling and monitoring can be configured using ConsumeErrHandler option, which provides information about errors encountered during consum
(handler MessageHandler, opts ...PullConsumeOpt)
| 135 | // Consume returns a ConsumeContext, which can be used to stop or drain |
| 136 | // the consumer. |
| 137 | Consume(handler MessageHandler, opts ...PullConsumeOpt) (ConsumeContext, error) |
| 138 | |
| 139 | // Messages returns MessagesContext, allowing continuous iteration |
| 140 | // over messages in a stream. Messages can be configured using |
no outgoing calls