- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for TestNoRaceAfterFunc2 (1.98 sec)
-
src/runtime/race/testdata/sync_test.go
c := make(chan bool) var f func() f = func() { i-- if i >= 0 { time.AfterFunc(0, f) } else { c <- true } } time.AfterFunc(0, f) <-c } func TestNoRaceAfterFunc2(t *testing.T) { var x int _ = x timer := time.AfterFunc(10, func() { x = 1 }) defer timer.Stop() } func TestNoRaceAfterFunc3(t *testing.T) { c := make(chan bool, 1) x := 0
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Nov 10 15:05:17 UTC 2020 - 3K bytes - Viewed (0)