ExpectMessagesDrainedOnClose sets an expectation on the partition consumer that the messages channel will be fully drained when Close is called. If this expectation is not met, an error is reported to the error reporter.
()
| 421 | // that the messages channel will be fully drained when Close is called. If this |
| 422 | // expectation is not met, an error is reported to the error reporter. |
| 423 | func (pc *PartitionConsumer) ExpectMessagesDrainedOnClose() *PartitionConsumer { |
| 424 | pc.messagesShouldBeDrained = true |
| 425 | |
| 426 | return pc |
| 427 | } |
| 428 | |
| 429 | // ExpectErrorsDrainedOnClose sets an expectation on the partition consumer |
| 430 | // that the errors channel will be fully drained when Close is called. If this |
no outgoing calls