- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for TestConcurrentTimerResetStop (0.16 sec)
-
src/time/time_test.go
defer wg.Done() for j := 0; j < tries; j++ { timer.Reset(Hour + Duration(i*j)) } }(i) } wg.Wait() } // Issue 37400: panic with "racy use of timers". func TestConcurrentTimerResetStop(t *testing.T) { const goroutines = 8 const tries = 1000 var wg sync.WaitGroup wg.Add(goroutines * 2) timer := NewTimer(Hour) for i := 0; i < goroutines; i++ { go func(i int) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 03:13:47 UTC 2024 - 56.5K bytes - Viewed (0)