WithMaxParallelMessages sets how many jobs can single consumer process simultaneously.
(n int)
| 173 | func 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. |
| 181 | func WithMaxParallelMessages(n int) ConsumerOption { |
| 182 | return func(c *consumerConfig) { |
no outgoing calls