entrySnapshot returns a copy of the current cron entry list.
()
| 337 | |
| 338 | // entrySnapshot returns a copy of the current cron entry list. |
| 339 | func (c *Cron) entrySnapshot() []Entry { |
| 340 | var entries = make([]Entry, len(c.entries)) |
| 341 | for i, e := range c.entries { |
| 342 | entries[i] = *e |
| 343 | } |
| 344 | return entries |
| 345 | } |
| 346 | |
| 347 | func (c *Cron) removeEntry(id EntryID) { |
| 348 | var entries []*Entry |