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

Add a Nevermind-Disposable pattern #17

Closed
StephenCleary opened this issue Sep 13, 2022 · 1 comment
Closed

Add a Nevermind-Disposable pattern #17

StephenCleary opened this issue Sep 13, 2022 · 1 comment
Assignees

Comments

@StephenCleary
Copy link
Owner

Find a good API for this kind of logic:

using var something = ...;
// Code that should dispose "something" on exception or return.
something.Nevermind();
// Code that should *not* dispose "something" on exception or return.
@StephenCleary StephenCleary self-assigned this Sep 13, 2022
@StephenCleary
Copy link
Owner Author

Forgot to close this issue; this was completed in v2.4.0.

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