MCPcopy Create free account
hub / github.com/dataddo/pgq / WithStopOnEmptyQueue

Function WithStopOnEmptyQueue

consumer.go:230–234  ·  view source on GitHub ↗

WithStopOnEmptyQueue sets whether the consumer should run until no messages can be consumed.

(finiteConsumption bool)

Source from the content-addressed store, hash-verified

228// WithLogger sets logger. Default is no logging.
229func 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.
236func WithStopOnEmptyQueue(finiteConsumption bool) ConsumerOption {
237 return func(c *consumerConfig) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected