question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Consider implementing AsyncEnumerable<T> for paging

See original GitHub issue

AsyncEnumerable<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:closed
  • Created 4 years ago
  • Comments:7 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
bjornharrtellcommented, Sep 30, 2020

@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)

0reactions
maureicommented, Dec 11, 2020

Agreed

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found