- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for TestSelfSelect (0.18 sec)
-
src/runtime/chan_test.go
return } done <- true }() close(c2) select { case <-c1: default: } if !<-done { t.Fatal("no chan is ready") } } } func TestSelfSelect(t *testing.T) { // Ensure that send/recv on the same chan in select // does not crash nor deadlock. defer runtime.GOMAXPROCS(runtime.GOMAXPROCS(2)) for _, chanCap := range []int{0, 10} { var wg sync.WaitGroup
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Oct 31 20:47:35 UTC 2023 - 23.4K bytes - Viewed (0)