- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for TestNoRaceChanSync (0.15 sec)
-
src/runtime/race/testdata/chan_test.go
// Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package race_test import ( "runtime" "testing" "time" ) func TestNoRaceChanSync(t *testing.T) { v := 0 _ = v c := make(chan int) go func() { v = 1 c <- 0 }() <-c v = 2 } func TestNoRaceChanSyncRev(t *testing.T) { v := 0 _ = v
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jul 18 19:55:29 UTC 2023 - 11K bytes - Viewed (0)