|
|
|
|
|
by throwaway894345
726 days ago
|
|
> Notes On Structured Concurrency goes into some depth on this comparison: Yeah, this is why we use `sync.WaitGroup`s and similar abstractions in Go. Using bare channels (like using `goto`) is fine for small local things, but if you're building abstractions you should use patterns like those discussed in the article (for example: https://go.dev/play/p/UoB8ECDbaTw --I'm sure this can be abstracted further). |
|