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

Function WithMaxParallelMessages

consumer.go:175–179  ·  view source on GitHub ↗

WithMaxParallelMessages sets how many jobs can single consumer process simultaneously.

(n int)

Source from the content-addressed store, hash-verified

173func WithAckTimeout(d time.Duration) ConsumerOption {
174 return func(c *consumerConfig) {
175 c.AckTimeout = d
176 }
177}
178
179// WithMaxParallelMessages sets how many jobs can single consumer process
180// simultaneously.
181func WithMaxParallelMessages(n int) ConsumerOption {
182 return func(c *consumerConfig) {

Calls

no outgoing calls