- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for SSChan (0.13 sec)
-
test/closedchan.go
var dummy = make(chan bool) type SSChan chan int func (c SSChan) Send(x int) { select { case c <- x: case <-dummy: } } func (c SSChan) Nbsend(x int) bool { select { default: return false case <-dummy: case c <- x: return true } panic("nbsend") } func (c SSChan) Recv() int { select { case <-dummy: case x := <-c:
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Feb 17 04:48:57 UTC 2012 - 5.8K bytes - Viewed (0)