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

Function WithLockDuration

consumer.go:151–155  ·  view source on GitHub ↗

WithLockDuration sets the maximal duration for how long the message remains locked for other consumers.

(d time.Duration)

Source from the content-addressed store, hash-verified

149 sem *semaphore.Weighted
150}
151
152// ConsumerOption applies option to consumerConfig.
153type ConsumerOption func(c *consumerConfig)
154
155// WithLockDuration sets the maximal duration for how long the message remains
156// locked for other consumers.
157func WithLockDuration(d time.Duration) ConsumerOption {
158 return func(c *consumerConfig) {

Calls

no outgoing calls