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

Async serializer? #2165

Open
b-maslennikov opened this issue Jan 12, 2024 · 1 comment
Open

Async serializer? #2165

b-maslennikov opened this issue Jan 12, 2024 · 1 comment

Comments

@b-maslennikov
Copy link

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

@alexeyzimarev
Copy link
Member

Yes, I think it's a good idea

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants