sizedwaitgroup
sizedwaitgroup copied to clipboard
An inappropriate use of `break-select`
I noticed a break-select in sizewaitgroup.go, which was used in AddWithContext Method, but break keyword can not jump out of the select in Golang. Although it looks like properly worked in this method, but it`s still confusing and misunderstanding.
The keyword break should work inside select according to the specification https://go.dev/ref/spec#Break_statements