Skip to content

Cleanup functions should return erors #409

Open
@nejtr0n

Description

Is your feature request related to a problem? Please describe.

Cleanup function has bad signature without returning error now.
Basic usage of this functions to close connection or other resources.
So it should be better to return error imho.

Describe the solution you'd like

Change cleanup function signature from func() to func() error or io.Closer contract

Describe alternatives you've considered

Dunno how to handle cleanup errors now.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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

      Cleanup functions should return erors · Issue #409 · google/wire