On Sun, Feb 5, 2023 at 5:12 PM cpu...@gmail.com <cpui...@gmail.com> wrote:

> Would that still busy-loop? Are there better patterns?

        for range q.data {}

iff the sending side properly closes the channel.

-- 
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/CAA40n-VAiRkF7PEZnOq50UnOJf%3D-eptD-hJ9WDaBOC0AvnL1zQ%40mail.gmail.com.

Reply via email to