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

Closing *client.Client ? #209

Open
msj121 opened this issue Mar 17, 2024 · 0 comments
Open

Closing *client.Client ? #209

msj121 opened this issue Mar 17, 2024 · 0 comments

Comments

@msj121
Copy link

msj121 commented Mar 17, 2024

Most libraries offer a way to close connections/clients. Just curious if you intend on adding this or not? I saw a finalizer in connection for cleanup - is it just assumed to leave this to garbage collection?

Sometimes I create connections in go routines and drop them - I fear sharing these connections (race conditions), can I just let them get garbage collected or should a close function be created for the client to destroy everything gracefully?

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