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

Ensure Sync stream serialization is handling IAsyncEnumerable correctly #67035

Merged

Conversation

eiriktsarpalis
Copy link
Member

Fix #66687. Also enables small buffer async tests for collections.

@ghost
Copy link

ghost commented Mar 23, 2022

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

Issue Details

Fix #66687. Also enables small buffer async tests for collections.

Author: eiriktsarpalis
Assignees: -
Labels:

area-System.Text.Json

Milestone: -

@eiriktsarpalis eiriktsarpalis requested a review from krwq March 23, 2022 12:22
@eiriktsarpalis eiriktsarpalis added this to the 7.0.0 milestone Mar 23, 2022
@@ -25,7 +25,7 @@ public sealed override void Write(Utf8JsonWriter writer, T value, JsonSerializer
// Bridge from resumable to value converters.

WriteStack state = default;
state.Initialize(typeof(T), options, supportContinuation: false);
state.Initialize(typeof(T), options, supportContinuation: false, supportAsync: false);
Copy link
Member

Choose a reason for hiding this comment

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

nit: supportsAsync

Copy link
Member Author

Choose a reason for hiding this comment

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

Agreed, but in this case it just mimics convention for the existing supportContinuation parameter. We can rename evertyhing at a future PR.

Copy link
Member

@krwq krwq left a comment

Choose a reason for hiding this comment

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

LGTM thanks

@eiriktsarpalis eiriktsarpalis merged commit 2bf30a0 into dotnet:main Mar 24, 2022
@eiriktsarpalis eiriktsarpalis deleted the fix-sync-asyncenumerable-handling branch March 24, 2022 14:38
radekdoulik pushed a commit to radekdoulik/runtime that referenced this pull request Mar 30, 2022
…ly (dotnet#67035)

* Fix dotnet#66687

* enable small buffer async tests for collections
@ghost ghost locked as resolved and limited conversation to collaborators Apr 23, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Sync stream serialization not handling IAsyncEnumerable correctly
2 participants