You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is a placeholder to uptake the recent IAsyncEnumerable feature for the serializer.
This includes creating an enumerator class that that implements IAsyncEnumerable and accepts a Stream in its constructor (and others TBD) that contains the actual JSON which can be accessed asynchronously:
The implementation will leverage the same patterns as in the existing async methods which preserve the unprocessed data from the stream (since the stream just returns raw JSON which won't align with object instances) and the "state" for continuing object deserialization as new JSON is obtained.
The text was updated successfully, but these errors were encountered:
I'm not understanding this. Why is a new public type needed? e.g. why isn't it:
It's flagged as still "API needs work" meaning "needs discussion" :)
If SerializerAsyncEnumerable<T> is public it may be convenient to return that instead of just IAsyncEnumerable<T> especially if there is any interesting state to expose (e.g. options, the Stream?).
This is a placeholder to uptake the recent
IAsyncEnumerable
feature for the serializer.This includes creating an enumerator class that that implements
IAsyncEnumerable
and accepts aStream
in its constructor (and others TBD) that contains the actual JSON which can be accessed asynchronously:and also likely exposed from the
JsonSerializer
static class:The implementation will leverage the same patterns as in the existing async methods which preserve the unprocessed data from the stream (since the stream just returns raw JSON which won't align with object instances) and the "state" for continuing object deserialization as new JSON is obtained.
The text was updated successfully, but these errors were encountered: