Skip to content

proposal: x/sync/errgroup: propagate panics through Go #74275

Closed as not planned
Closed as not planned
@qiulaidongfeng

Description

@qiulaidongfeng

Proposal Details

See #53757 (comment) , #53757 can delay the propagation of panics arbitrarily far into the future, making mistakes that used to be promptly discovered latent.

We can panic during Group.add to preserve the original behavior(fast panic when with not call Wait).
However, this means that we are in Group.Go propagate panic.
This is API change ,so I submit this proposal.

I can send CL implement this proposal.

open-ended question:
Is propagate runtime.Goexit through Go?
Propagate the first panic or all panics?
A subtle difference from the previous fast panic, where the previous panic had to be recovered within the function, now it can be recovered outside of the function. Is this acceptable?

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

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions