Skip to content

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

Merged
JamesNK merged 1 commit into
grpc:masterfrom
dexcompiler:patch-1
Dec 9, 2024
Merged

Refactor: Use await using for packageVersionStream to ensure proper disposal of async resources#2521
JamesNK merged 1 commit into
grpc:masterfrom
dexcompiler:patch-1

Conversation

@dexcompiler

Copy link
Copy Markdown
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.

@linux-foundation-easycla

linux-foundation-easycla Bot commented Aug 29, 2024

Copy link
Copy Markdown

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
This was referenced Jun 16, 2026
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