On Sun, Apr 21, 2024, 2:07 PM 'Dan Kortschak' via golang-nuts <
golang-nuts@googlegroups.com> wrote:

> On Sat, 2024-04-20 at 18:55 -0700, Robert Solomon wrote:
> > channels are not queues, as Justin said
>
> They can be; buffered channels are queues.
>
> From https://go.dev/ref/spec#Channel_types
>
> > Channels act as first-in-first-out queues. For example, if one
> > goroutine sends values on a channel and a second goroutine receives
> > them, the values are received in the order sent.



And really I wasn't even commenting on the nature of the channel. Only the
scheduling of the goroutines. Buffered or not, they would still be random
order right?


>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "golang-nuts" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/golang-nuts/oMFIFDi_Irg/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> golang-nuts+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/golang-nuts/05501e4c795fdcb4b91ffa3c35f95984772c9cde.camel%40kortschak.io
> .
>

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/CAPGFgA2xbShBJNd1Sg2BOOsN%2BtU0050PcbDiGtOCNULsQG%3Dwig%40mail.gmail.com.

Reply via email to