Menu

#ErrGroup

2 posts

Feed·
2 of 2 posts
errgroup vs WaitGroup vs Channels: Pick the Right Concurrency Primitive
🖼️
0Read More

errgroup vs WaitGroup vs Channels: Pick the Right Concurrency Primitive

DEV Community·Gabriel Anhaia·6 months ago
#zVlKAzBI
#case#go#concurrency#error#errgroup

Three Go concurrency primitives, three different jobs. A decision matrix with runnable code for fan-out, fail-fast, and back-pressure.

15s
Why Your Team Should Stop Reaching for errgroup by Default
🖼️
0Read More

Why Your Team Should Stop Reaching for errgroup by Default

DEV Community·Gabriel Anhaia·6 months ago
#QKRGkHOa
#failure#pattern#go#concurrency#error

errgroup cancels peers on first error, swallows panics in some Go versions, and leaks goroutines parked on channels. Three patterns that fix it.

15s