- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for TestNoRaceBlockedSendSync (0.18 sec)
-
src/runtime/race/testdata/chan_test.go
for i := 0; i < cap(chanWg); i++ { chanWg <- true } for i := 0; i < N; i++ { _ = data[i] } } // Test that sender synchronizes with receiver even if the sender was blocked. func TestNoRaceBlockedSendSync(t *testing.T) { c := make(chan *int, 1) c <- nil go func() { i := 42 c <- &i }() // Give the sender time to actually block.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jul 18 19:55:29 UTC 2023 - 11K bytes - Viewed (0)