issues
search
komuw
/
ong
ong, is a Go http toolkit.
MIT License
16
stars
4
forks
source link
ong/sync: concat errors
#429
Closed
komuw
closed
2 months ago
komuw
commented
2 months ago
Change
sync.WaitGroup.Go
so that it does not return on the first non-nil error. Instead, concat any errors using
errors.Join
and return that instead.
This is because, most of the times that you are using a
sync.WaitGroup
, you want all the functions to run irrespective of if one fails.
sync.WaitGroup.Go
so that it does not return on the first non-nil error. Instead, concat any errors usingerrors.Join
and return that instead.sync.WaitGroup
, you want all the functions to run irrespective of if one fails.