Open GoogleCodeExporter opened 8 years ago
>>>
Example - notifier.go:60
ok := nc.chans[0] <- &IdChanInfoMsg{Info: []*IdChanInfo{info}}
Go doesnt seem to like trying to take a return value from a channel write
operation?
<<<
Go dropped non-blocking syntax for channel operations since Feb. You can
replace them with "select"; similar to following transformation:
ok := chan<-val
if ok {
Sent()
} else {
NotSent()
}
is equivalent to:
select {
case chan<-val:
Sent()
default:
NotSent()
}
Original comment by yglg...@gmail.com
on 1 Aug 2011 at 5:47
Original issue reported on code.google.com by
justinis...@gmail.com
on 22 Jul 2011 at 11:57