WithChain specifies Job wrappers to apply to all jobs added to this cron. Refer to the Chain* functions in this package for provided wrappers.
(wrappers ...JobWrapper)
| 32 | // WithChain specifies Job wrappers to apply to all jobs added to this cron. |
| 33 | // Refer to the Chain* functions in this package for provided wrappers. |
| 34 | func WithChain(wrappers ...JobWrapper) Option { |
| 35 | return func(c *Cron) { |
| 36 | c.chain = NewChain(wrappers...) |
| 37 | } |
| 38 | } |
| 39 | |
| 40 | // WithLogger uses the provided logger. |
| 41 | func WithLogger(logger Logger) Option { |