Home | History | Annotate | Download | only in time

Lines Matching refs:Timer

70 			// Yield so that the OS can wake up the timer thread,
89 garbageAll := make([][]*Timer, runtime.GOMAXPROCS(0))
94 garbage := make([]*Timer, 1<<15)
165 timers := make([]*Timer, n)
327 timer := AfterFunc(2*Second, func() {
328 t.Fatalf("timer %d was not stopped", i)
331 timer.Stop()
363 return errors.New("resetting unfired timer returned false")
368 return errors.New("timer fired early")
375 return errors.New("reset timer did not fire")
379 return errors.New("resetting expired timer returned true")
425 // Test that a panic while deleting a timer does not leave
444 var timer *Timer
445 timer.Stop()
461 if want := "called on uninitialized Timer"; !strings.Contains(s, want) {
468 var tr Timer
474 var tr Timer