Hi!

On Sat, Mar 24, 2018 at 03:41:19AM -0700, T L wrote:
> Shouldn't it be that the receive from the only buffer and fill next queuing 
> value to the only buffer in one atomic operation?

AFAIR spec doesn't provide such a guarantee, so this isn't a bug.

If you need to know when last value from chan was received - just close a
chan after sending last value and check for ,ok on receiving from chan.

-- 
                        WBR, Alex.

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to