WithMaxTaskExecution set maximum execution time for a Task.
(d time.Duration)
| 44 | |
| 45 | // WithMaxTaskExecution set maximum execution time for a Task. |
| 46 | func WithMaxTaskExecution(d time.Duration) Option { |
| 47 | return OptionFunc(func(q *options) { |
| 48 | q.maxTaskExecution = d |
| 49 | }) |
| 50 | } |
| 51 | |
| 52 | // WithRetryDelay set retry delay |
| 53 | func WithRetryDelay(d time.Duration) Option { |
no test coverage detected