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

Method Entries

cron.go:177–186  ·  view source on GitHub ↗

Entries returns a snapshot of the cron entries.

()

Source from the content-addressed store, hash-verified

175
176// Entries returns a snapshot of the cron entries.
177func (c *Cron) Entries() []Entry {
178 c.runningMu.Lock()
179 defer c.runningMu.Unlock()
180 if c.running {
181 replyChan := make(chan []Entry, 1)
182 c.snapshot <- replyChan
183 return <-replyChan
184 }
185 return c.entrySnapshot()
186}
187
188// Location gets the time zone location
189func (c *Cron) Location() *time.Location {

Callers 3

EntryMethod · 0.95
TestSnapshotEntriesFunction · 0.80
TestJobFunction · 0.80

Calls 1

entrySnapshotMethod · 0.95

Tested by 2

TestSnapshotEntriesFunction · 0.64
TestJobFunction · 0.64