Run runs the cron job function.
()
| 21 | |
| 22 | // Run runs the cron job function. |
| 23 | func (j *Job) Run() { |
| 24 | if j.fn != nil { |
| 25 | j.fn() |
| 26 | } |
| 27 | } |
| 28 | |
| 29 | // MarshalJSON implements [json.Marshaler] and export the current |
| 30 | // jobs data into valid JSON. |
no outgoing calls