-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Async serializer? #2165
Comments
Yes, I think it's a good idea |
I tried to do it but getting full advantage of async serialisation requires reconsidering the way serialisation works in general in RestSharp. For example, Of course, it is trivial to change the signature for interfaces and all the implementations. Would this help? |
Would it be possible to add support of async serializer?
System.Text.Json IAsyncEnumerable serialization
If you want to serialize IAsyncEnumerable in net6+ app you need to use JsonSerializer.SerializeAsync() method
IRestSerializer does not allow to await inside Serializer() as it's synchronious method.
Temporary solution - using GetAwaiter().GetResult() - but this approach doesn't offer "true" async support
The text was updated successfully, but these errors were encountered: