2 ms·
Is it really? >90% of the time, I'm just passing a context so that I can cancel the rest of the goroutines if an early one fails and I don't need to do the rest
by Kamq 3y ago
Is it really? >90% of the time, I'm just passing a context so that I can cancel the rest of the goroutines if an early one fails and I don't need to do the rest of the computation.
That works just fine with throwing a context.Background in, which should be available anywhere, and not color the function.