top | item 6771125 (no title) dlsspy | 12 years ago This is very much false:While this will return immediately: v, ok := <- c discuss order hn newest chimeracoder|12 years ago Yeah, "ok" here really signals whether or not the channel is closed. It will still block unless c is buffered.There are actually a number of other errors in this post, unfortunately, even though I agree with the general conclusion. dlsspy|12 years ago "<-c", regardless of what's on the left side of it will block in every case until there's a messages available in the channel (note that close is a message).I just notice this section has been removed. I'll be less angry now. :)
chimeracoder|12 years ago Yeah, "ok" here really signals whether or not the channel is closed. It will still block unless c is buffered.There are actually a number of other errors in this post, unfortunately, even though I agree with the general conclusion. dlsspy|12 years ago "<-c", regardless of what's on the left side of it will block in every case until there's a messages available in the channel (note that close is a message).I just notice this section has been removed. I'll be less angry now. :)
dlsspy|12 years ago "<-c", regardless of what's on the left side of it will block in every case until there's a messages available in the channel (note that close is a message).I just notice this section has been removed. I'll be less angry now. :)
chimeracoder|12 years ago
There are actually a number of other errors in this post, unfortunately, even though I agree with the general conclusion.
dlsspy|12 years ago
I just notice this section has been removed. I'll be less angry now. :)