- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for C1 (0.03 sec)
-
doc/go_spec.html
a select with only <code>nil</code> channels and no default case blocks forever. </p> <pre> var a []int var c, c1, c2, c3, c4 chan int var i1, i2 int select { case i1 = <-c1: print("received ", i1, " from c1\n") case c2 <- i2: print("sent ", i2, " to c2\n") case i3, ok := (<-c3): // same as: i3, ok := <-c3 if ok {
Registered: Tue Nov 05 11:13:11 UTC 2024 - Last Modified: Wed Oct 02 00:58:01 UTC 2024 - 282.5K bytes - Viewed (0)