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

Refactor: Use await using for packageVersionStream to ensure proper disposal of async resources #2521

Merged
merged 1 commit into from
Dec 9, 2024

Conversation

dexcompiler
Copy link
Contributor

Summary

This PR refactors the ResolvePackageVersions method to use await using for packageVersionStream. This change ensures proper disposal of async resources, improving the reliability and performance of the application.

Details

  • Updated the ResolvePackageVersions method to use await using for packageVersionStream.
  • This change ensures that the stream is properly disposed of even if an exception occurs, following best practices for asynchronous resource management.

Copy link

linux-foundation-easycla bot commented Aug 29, 2024

CLA Signed

The committers listed above are authorized under a signed CLA.

  • ✅ login: dexcompiler / name: Dexter Ajoku (43d9a65)

@JamesNK JamesNK closed this Dec 9, 2024
@JamesNK JamesNK reopened this Dec 9, 2024
@JamesNK JamesNK merged commit 6a3c977 into grpc:master Dec 9, 2024
3 checks passed
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.

2 participants