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

Function WithMessageProcessingReserveDuration

consumer.go:189–193  ·  view source on GitHub ↗

WithMessageProcessingReserveDuration sets the duration for which the message is reserved for handling result state.

(d time.Duration)

Source from the content-addressed store, hash-verified

187// WithMetrics sets metrics meter. Default is noop.Meter{}.
188func WithMetrics(m metric.Meter) ConsumerOption {
189 return func(c *consumerConfig) {
190 c.Metrics = m
191 }
192}
193
194// WithMessageProcessingReserveDuration sets the duration for which the message is reserved for handling result state.
195func WithMessageProcessingReserveDuration(d time.Duration) ConsumerOption {
196 return func(c *consumerConfig) {

Callers 1

ExampleNewConsumerFunction · 0.92

Calls

no outgoing calls

Tested by 1

ExampleNewConsumerFunction · 0.74