Skip to content

Load NuGet assemblies on a background thread#52521

Merged
sharwell merged 1 commit intodotnet:mainfrom
sharwell:background-load
Apr 9, 2021
Merged

Load NuGet assemblies on a background thread#52521
sharwell merged 1 commit intodotnet:mainfrom
sharwell:background-load

Conversation

@sharwell
Copy link
Contributor

@sharwell sharwell commented Apr 9, 2021

Fixes AB#1301528

@sharwell sharwell requested a review from a team as a code owner April 9, 2021 15:52
@ghost ghost added the Area-IDE label Apr 9, 2021
Copy link
Contributor

@jmarolf jmarolf left a comment

Choose a reason for hiding this comment

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

:shipit:

return _packageSourceProvider.Value;
}

protected override async Task EnableServiceAsync(CancellationToken cancellationToken)
Copy link
Contributor

Choose a reason for hiding this comment

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

Can the Platform team offer a ValueTask api? Is there a reason they don't do that for a lot of these?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ValueTask wouldn't buy us much here. async methods that complete synchronously and return Task use a cached instance.

@sharwell sharwell enabled auto-merge April 9, 2021 22:14
@sharwell sharwell merged commit 0d17e72 into dotnet:main Apr 9, 2021
@ghost ghost added this to the Next milestone Apr 9, 2021
@dibarbet dibarbet modified the milestones: Next, 16.10.P3 Apr 26, 2021
@sharwell sharwell deleted the background-load branch January 13, 2022 15:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants