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

auto dispose objects in the connection scope #4557

Open
akosyakov opened this issue Mar 14, 2019 · 0 comments
Open

auto dispose objects in the connection scope #4557

akosyakov opened this issue Mar 14, 2019 · 0 comments
Labels
proposal feature proposals (potential future features)

Comments

@akosyakov
Copy link
Member

The connection scope allows to create instances existing only within the user session, such instances can access each other as well as frontend services.

They also get garbage collected when the session is gone, but if an instance implements Disposable when it is responsibility of a developer to dispose it when a connection is closed. It's not trivial and error-prone.

It would be nice if all disposable objects get disposed together with a connection if they were not disposed already.

Motivated by #4521 (review)

cc @svenefftinge @benoitf

@akosyakov akosyakov added the proposal feature proposals (potential future features) label Mar 14, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
proposal feature proposals (potential future features)
Projects
None yet
Development

No branches or pull requests

1 participant