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