sizedwaitgroup icon indicating copy to clipboard operation
sizedwaitgroup copied to clipboard

An inappropriate use of `break-select`

Open faasdfasdfasdfasd opened this issue 3 years ago • 1 comments

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.

faasdfasdfasdfasd avatar Aug 17 '22 10:08 faasdfasdfasdfasd

The keyword break should work inside select according to the specification https://go.dev/ref/spec#Break_statements

eduardonunesp avatar Mar 03 '23 18:03 eduardonunesp