Skip to content

x/sync/singleflight: add example of using Group #60208

Closed
@karelbilek

Description

@karelbilek

The documentation for singleflightdoesn't show any example of using singleflight.Group.

Thus it's not immediately clear whether the recommended usage is struct or pointer.

(This is not a general discussion/question about the proper use of the library, it's a request for adding documentation for it.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    DocumentationIssues describing a change to documentation.FrozenDueToAgeNeedsFixThe path to resolution is known, but the work has not been done.help wanted

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions