Skip to content

Should ValueTask factor the token value into the GetHashCode result? #83685

Discussion options

You must be logged in to vote

Storing value tasks long-term, especially those backed by an IValueTaskSource seems like a code smell. Value tasks' purpose is to be awaited immediately. I don't see any actual impact with their implementation of GetHashCode().

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by IDisposable
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Ideas
Labels
None yet
2 participants