MCPcopy
hub / github.com/robfig/cron / entrySnapshot

Method entrySnapshot

cron.go:339–345  ·  view source on GitHub ↗

entrySnapshot returns a copy of the current cron entry list.

()

Source from the content-addressed store, hash-verified

337
338// entrySnapshot returns a copy of the current cron entry list.
339func (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
347func (c *Cron) removeEntry(id EntryID) {
348 var entries []*Entry

Callers 2

EntriesMethod · 0.95
runMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected