On Saturday, March 24, 2018 at 10:18:15 AM UTC-4, Alex Efros wrote: > > 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. >
I just want to avoid there are goroutine blocking on sending values to a channel, though there are other ways to do this. -- 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 [email protected]. For more options, visit https://groups.google.com/d/optout.
