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

Add missing ConfigureAwait(false) on await foreach #32450

Merged
merged 1 commit into from
Nov 29, 2023

Conversation

roji
Copy link
Member

@roji roji commented Nov 29, 2023

Fixes #32449

@roji roji requested a review from a team November 29, 2023 12:42
@ajcvickers
Copy link
Member

Should this be documented as a breaking change?

@roji
Copy link
Member Author

roji commented Nov 29, 2023

I don't think so... Unless I'm mistaken, all nested operations within the async enumeration already have ConfigureAwait(false), so user code (e.g. interceptors) already shouldn't be running in the user's synchronization context... Do you see any potential problem here?

@ajcvickers
Copy link
Member

If it doesn't change the way user code runs, then I think we're fine. Just wasn't sure that it wouldn't.

@roji
Copy link
Member Author

roji commented Nov 29, 2023

I'll take another look tomorrow to be sure, but I think we're OK on that front.

@roji roji merged commit caaf394 into dotnet:main Nov 29, 2023
7 checks passed
@roji roji deleted the ConfigureAwait branch November 29, 2023 22:15
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.

Missing ConfigureAwait(false) for ToListAsync and related async terminating operators
2 participants