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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

dexcompiler
Copy link

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.

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.

1 participant