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

Function wait

cron_test.go:681–688  ·  view source on GitHub ↗
(wg *sync.WaitGroup)

Source from the content-addressed store, hash-verified

679}
680
681func wait(wg *sync.WaitGroup) chan bool {
682 ch := make(chan bool)
683 go func() {
684 wg.Wait()
685 ch <- true
686 }()
687 return ch
688}
689
690func stop(cron *Cron) chan bool {
691 ch := make(chan bool)

Callers 14

TestAddBeforeRunningFunction · 0.85
TestAddWhileRunningFunction · 0.85
TestRemoveBeforeRunningFunction · 0.85
TestRemoveWhileRunningFunction · 0.85
TestSnapshotEntriesFunction · 0.85
TestMultipleEntriesFunction · 0.85
TestRunningJobTwiceFunction · 0.85
TestLocalTimezoneFunction · 0.85
TestNonLocalTimezoneFunction · 0.85
TestBlockingRunFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected