MCPcopy
hub / github.com/IBM/sarama / ExpectMessagesDrainedOnClose

Method ExpectMessagesDrainedOnClose

mocks/consumer.go:423–427  ·  view source on GitHub ↗

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.

()

Source from the content-addressed store, hash-verified

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.
423func (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

Implementers 2

PartitionConsumermocks/consumer.go

Calls

no outgoing calls