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