WithStopOnEmptyQueue sets whether the consumer should run until no messages can be consumed.
(finiteConsumption bool)
| 228 | // WithLogger sets logger. Default is no logging. |
| 229 | func WithLogger(logger *slog.Logger) ConsumerOption { |
| 230 | return func(c *consumerConfig) { |
| 231 | c.Logger = logger |
| 232 | } |
| 233 | } |
| 234 | |
| 235 | // WithStopOnEmptyQueue sets whether the consumer should run until no messages can be consumed. |
| 236 | func WithStopOnEmptyQueue(finiteConsumption bool) ConsumerOption { |
| 237 | return func(c *consumerConfig) { |
nothing calls this directly
no outgoing calls
no test coverage detected