- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for TestRaceChanCloseSend (0.58 sec)
-
src/runtime/race/testdata/chan_test.go
c := make(chan int, 10) r := make(chan int, 10) go func() { r <- cap(c) }() go func() { close(c) r <- 0 }() <-r <-r } func TestRaceChanCloseSend(t *testing.T) { compl := make(chan bool, 1) c := make(chan int, 10) go func() { close(c) compl <- true }() c <- 0 <-compl } func TestNoRaceChanMutex(t *testing.T) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jul 18 19:55:29 UTC 2023 - 11K bytes - Viewed (0)