RemoveAll removes all registered cron jobs.
()
| 124 | |
| 125 | // RemoveAll removes all registered cron jobs. |
| 126 | func (c *Cron) RemoveAll() { |
| 127 | c.mux.Lock() |
| 128 | defer c.mux.Unlock() |
| 129 | |
| 130 | c.jobs = []*Job{} |
| 131 | } |
| 132 | |
| 133 | // Total returns the current total number of registered cron jobs. |
| 134 | func (c *Cron) Total() int { |
no outgoing calls