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

Fix all IDE0039 warnings, prefer local functions #8605

Merged
merged 1 commit into from
Sep 1, 2023

Conversation

IEvangelist
Copy link
Member

@IEvangelist IEvangelist commented Aug 31, 2023

Supersedes part of #8471

Microsoft Reviewers: Open in CodeFlow

@IEvangelist IEvangelist mentioned this pull request Aug 31, 2023
@ReubenBond ReubenBond merged commit f845106 into dotnet:main Sep 1, 2023
19 checks passed
@@ -513,7 +513,7 @@ private async Task DeactivateActivationsFromCollector(List<ICollectibleGrainCont
logger.LogInformation((int)ErrorCode.Catalog_ShutdownActivations_1, "DeactivateActivationsFromCollector: total {Count} to promptly Destroy.", list.Count);
CatalogInstruments.ActiviationShutdownViaCollection();

Action<Task> signalCompletion = task => mtcs.SetOneResult();
void signalCompletion(Task task) => mtcs.SetOneResult();
Copy link
Contributor

Choose a reason for hiding this comment

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

This one should be reverted - it's going to cause potentially multiple delegate allocations (one for each list item, instead of one overall).

@github-actions github-actions bot locked and limited conversation to collaborators Dec 2, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants