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

Implement IAsyncDisposable from IConnectionMultiplexer #2161

Merged
merged 4 commits into from
Jul 26, 2022

Conversation

kimsey0
Copy link
Contributor

@kimsey0 kimsey0 commented Jun 16, 2022

Fixes #2160.

We may want to implement IAsyncDisposable in more public IDisposable classes which can dispose their resources asynchronously.

@NickCraver
Copy link
Collaborator

Hey @kimsey0 - we should add release notes and move the API to the Shipped set in-order but then good to go. Happy to take care of that to get this in if you want :)

@kimsey0 kimsey0 marked this pull request as ready for review July 21, 2022 12:22
@kimsey0
Copy link
Contributor Author

kimsey0 commented Jul 21, 2022

@NickCraver: I moved the API change to shipped and added a new line under Unreleased in the release notes document. I haven't used Microsoft.CodeAnalysis.PublicApiAnalyzers before, so feel free to fix it if I've done something incorrectly.

Copy link
Collaborator

@NickCraver NickCraver left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is looking good! 1 issue introduced with a null ref in dispose though - need to shuffle a bit on how that's handled (comments inline).

Co-authored-by: Nick Craver <nrcraver@gmail.com>
Copy link
Collaborator

@NickCraver NickCraver left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking good, thank you!

@NickCraver NickCraver merged commit 4f5ebac into StackExchange:main Jul 26, 2022
@kimsey0 kimsey0 deleted the iasyncdisposable branch July 26, 2022 14:41
@kimsey0
Copy link
Contributor Author

kimsey0 commented Jul 26, 2022

Thanks!

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

Successfully merging this pull request may close these issues.

Implement IAsyncDisposable in IConnectionMultiplexer
2 participants