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

Function TestMultiThreadedStartAndStop

cron_test.go:674–679  ·  cron_test.go::TestMultiThreadedStartAndStop
(t *testing.T)

Source from the content-addressed store, hash-verified

672}
673
674func TestMultiThreadedStartAndStop(t *testing.T) {
675 cron := New()
676 go cron.Run()
677 time.Sleep(2 * time.Millisecond)
678 cron.Stop()
679}
680
681func wait(wg *sync.WaitGroup) chan bool {
682 ch := make(chan bool)

Callers

nothing calls this directly

Calls 3

NewFunction · 0.85
StopMethod · 0.80
RunMethod · 0.65

Tested by

no test coverage detected