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

Method Run

cron.go:226–235  ·  view source on GitHub ↗

Run the cron scheduler, or no-op if already running.

()

Source from the content-addressed store, hash-verified

224
225// Run the cron scheduler, or no-op if already running.
226func (c *Cron) Run() {
227 c.runningMu.Lock()
228 if c.running {
229 c.runningMu.Unlock()
230 return
231 }
232 c.running = true
233 c.runningMu.Unlock()
234 c.run()
235}
236
237// run the scheduler.. this is private just due to the need to synchronize
238// access to the 'running' state variable.

Callers

nothing calls this directly

Calls 1

runMethod · 0.95

Tested by

no test coverage detected