Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cleanup functions should return erors #409

Open
nejtr0n opened this issue Jul 7, 2024 · 0 comments
Open

Cleanup functions should return erors #409

nejtr0n opened this issue Jul 7, 2024 · 0 comments

Comments

@nejtr0n
Copy link

nejtr0n commented Jul 7, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant