WithBlockRecurrenceLimit overrides the same-kind re-block count before task escalation.
(limit int)
| 235 | |
| 236 | // WithBlockRecurrenceLimit overrides the same-kind re-block count before task escalation. |
| 237 | func WithBlockRecurrenceLimit(limit int) Option { |
| 238 | return func(opts *managerOptions) { |
| 239 | opts.blockRecurrenceLimit = limit |
| 240 | } |
| 241 | } |
| 242 | |
| 243 | // NewManager constructs one task-domain manager with the supplied dependencies. |
| 244 | func NewManager(opts ...Option) (*Service, error) { |
no outgoing calls