Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestZeroTimer (0.23 sec)

  1. src/time/sleep_test.go

    func TestZeroTimer(t *testing.T) {
    	t.Run("impl=chan", func(t *testing.T) {
    		testZeroTimer(t, NewTimer)
    	})
    	t.Run("impl=func", func(t *testing.T) {
    		testZeroTimer(t, newTimerFunc)
    	})
    	t.Run("impl=cache", func(t *testing.T) {
    		timer := newTimerFunc(Hour)
    		testZeroTimer(t, func(d Duration) *Timer {
    			timer.Reset(d)
    			return timer
    		})
    	})
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 22 16:33:57 UTC 2024
    - 22.5K bytes
    - Viewed (0)
Back to top