Consider implementing AsyncEnumerable<T> for paging
See original GitHub issueAsyncEnumerable<T>
was designed to solve problems like returning a paged API response from an API in a more efficient way than currently implemented. See this blog.
Consider implementing this in JsonApiDotNetCore
Issue Analytics
- State:
- Created 4 years ago
- Comments:7 (6 by maintainers)
Top Results From Across the Web
IAsyncEnumerable with yield in C# - Code Maze
Let's learn about IAsyncEnumerable and the way to iterate over an IEnumerable collection asynchronously with the yield keyword.
Read more >IAsyncEnumerable<T> - An Introduction - Stuart Lang
1. Implement the IAsyncEnumerable<T> and IAsyncEnumerator<T> interfaces directly. You can do this, and for performance critical code, this ...
Read more >Pagination with the Azure SDK for .NET
The Azure SDK for .NET exposes an implementation of IAsyncEnumerable<T> with its AsyncPageable<T> class. All of the samples in this article rely ...
Read more >Flattening Paged Responses with IAsyncEnumerables
I've recently found myself in a situation where I'm calling APIs that return a collection of items in pages. Especially when calling OData ......
Read more >Only sources that implement IAsyncEnumerable can be ...
Only sources that implement IAsyncEnumerable can be used for Entity Framework asynchronous operations. I'm implementing a Model using EF 6.1. 3 ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@bart-degreed: I would imagine streaming out the response also has the issue/drawback that if an error occurs it will not be able to communicate that properly (as the HTTP header is already sent as OK or something else indicating success). (not to mean it would be totally undesirable to be able to stream out large responses)
Agreed