Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

pentp
Copy link
Contributor

@pentp pentp commented Oct 25, 2023

Always use Interlocked.CompareExchange result when possible instead of re-reading the value.
Use m_stateObject for storing WhenAllPromise failed/canceled tasks.

@ghost ghost added area-System.Threading.Tasks community-contribution Indicates that the PR has been added by a community member labels Oct 25, 2023
@ghost
Copy link

ghost commented Oct 25, 2023

Tagging subscribers to this area: @dotnet/area-system-threading-tasks
See info in area-owners.md if you want to be subscribed.

Issue Details

Always use Interlocked.CompareExchange result when possible instead of re-reading the value.
Use m_stateObject for storing WhenAllPromise failed/canceled tasks.

Author: pentp
Assignees: -
Labels:

area-System.Threading.Tasks, community-contribution

Milestone: -

Copy link
Member

@stephentoub stephentoub left a comment

Choose a reason for hiding this comment

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

Thanks!

@tannergooding
Copy link
Member

@pentp, just wanted to make sure you had seen Stephen's comments. Are you planning on fixing those here in this PR or would you prefer to push up a second PR after this one is merged since they're relatively minor?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-System.Threading.Tasks community-contribution Indicates that the PR has been added by a community member
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants