Skip to content

Consider handling panics of goroutines #10

@GiedriusS

Description

@GiedriusS

run.Group spawns one or more goroutines which execute given functions. However, goroutine do not and cannot inherit panic handlers from parent goroutines so a panic() in one of the child goroutines will kill the whole program. Please consider adding a new parameter to Group.Run() which will add a recover() and then return it as an error to the caller. Until then we are forced to add a wrapper function which will do that like here: thanos-io/thanos#932.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions