Home | History | Annotate | Download | only in time

Lines Matching refs:Timer

70 			// Yield so that the OS can wake up the timer thread,
85 garbage := make([]*Timer, 1<<17)
150 timers := make([]*Timer, n)
288 timer := AfterFunc(2*Second, func() {
289 t.Fatalf("timer %d was not stopped", i)
292 timer.Stop()
324 return errors.New("resetting unfired timer returned false")
329 return errors.New("timer fired early")
336 return errors.New("reset timer did not fire")
340 return errors.New("resetting expired timer returned true")
386 // Test that a panic while deleting a timer does not leave
405 var timer *Timer
406 timer.Stop()
422 if want := "called on uninitialized Timer"; !strings.Contains(s, want) {
429 var tr Timer
435 var tr Timer