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

Method startJob

cron.go:308–314  ·  view source on GitHub ↗

startJob runs the given job in a new goroutine.

(j Job)

Source from the content-addressed store, hash-verified

306
307// startJob runs the given job in a new goroutine.
308func (c *Cron) startJob(j Job) {
309 c.jobWaiter.Add(1)
310 go func() {
311 defer c.jobWaiter.Done()
312 j.Run()
313 }()
314}
315
316// now returns current time in c location
317func (c *Cron) now() time.Time {

Callers 1

runMethod · 0.95

Calls 2

DoneMethod · 0.80
RunMethod · 0.65

Tested by

no test coverage detected