WithParser overrides the parser used for interpreting job schedules.
(p ScheduleParser)
| 24 | |
| 25 | // WithParser overrides the parser used for interpreting job schedules. |
| 26 | func WithParser(p ScheduleParser) Option { |
| 27 | return func(c *Cron) { |
| 28 | c.parser = p |
| 29 | } |
| 30 | } |
| 31 | |
| 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. |
no outgoing calls