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

Method waitClosed

consumer_group.go:1311–1321  ·  view source on GitHub ↗

Drains messages and errors, ensures the claim is fully closed.

()

Source from the content-addressed store, hash-verified

1309
1310// Drains messages and errors, ensures the claim is fully closed.
1311func (c *consumerGroupClaim) waitClosed() (errs ConsumerErrors) {
1312 go func() {
1313 for range c.Messages() {
1314 }
1315 }()
1316
1317 for err := range c.Errors() {
1318 errs = append(errs, err)
1319 }
1320 return
1321}

Callers 1

consumeMethod · 0.80

Calls 2

MessagesMethod · 0.65
ErrorsMethod · 0.65

Tested by

no test coverage detected