News for hackers. Stuff that matters.
Re:Goroutines: The concurrency model we wanted all along by collinvandyck76 on Friday July 07, 2023 @05:23PM (#36638500)
If your problem fits, you can sometimes keep the former version in play with the pipeline pattern, where child goroutines are stopped when the parent goroutine closes the channel in a defer when it's exiting.

That being said, my experience is that anything moderately sophisticated requires the use of for/select. In my opinion, that's fine, because select gives you so much power the somewhat more complex form is worth it.

There are no comments on this comment yet.