Skip to content

proposal: x/sync/errgroup: add Propagate field #74306

Closed as not planned
Closed as not planned
@qiulaidongfeng

Description

@qiulaidongfeng

Proposal Details

See #74304 (comment) and #53757 (comment) , Sometimes we need to restore the old behavior of errgroup, and I suggest adding a new field Propagate to achieve this, turning the new behavior into an option to join.

Don't use GODEBUG because don't know what to set its default value and what to enable new behavior when the go line in go.mod changes to.

I can send CL implement this proposal.

open-ended question:
Do we also need to adopt https://go.dev/cl/682335 or #74275 for faster panic when using new behaviors?

Metadata

Metadata

Assignees

No one assigned

    Labels

    LibraryProposalIssues describing a requested change to the Go standard library or x/ libraries, but not to a toolProposal

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions