Skip to content

sync: clarify WaitGroup.Done() behaviour when the counter is zero #39679

Open
@leventov

Description

@leventov

I think it's worth noting that WaitGroup.Done() panics if the counter is already zero. It's currently inferrable from the docs, but not super obvious.

Metadata

Metadata

Assignees

No one assigned

    Labels

    DocumentationIssues describing a change to documentation.NeedsInvestigationSomeone must examine and confirm this is a valid issue and not a duplicate of an existing one.compiler/runtimeIssues related to the Go compiler and/or runtime.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions