Drains messages and errors, ensures the claim is fully closed.
()
| 1309 | |
| 1310 | // Drains messages and errors, ensures the claim is fully closed. |
| 1311 | func (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 | } |