Comments (5)
what is it supposed to do?
from asyncenumerable.
With it you can order the sequence. Sync version is IOrderedEnumerable
from asyncenumerable.
An IAsyncEnumerable
should be used for streaming, not sure how IOrderedEnumerable
can be applicable here - the source collection should not be stored in memory.
Do you have any specific use case?
from asyncenumerable.
@TYROTOXIN It's possible in a streaming context - similar to IQbservable
- where it is really the remote that is doing the sorting and it's just a signal to the consumer that it IS sorted, but no code in a library would ever be making a OrderedAsyncEnumerable
directly.
To explain that better, a client would call a StreamSortedFromRemote(). The remote would create an IOrderedEnumerable, but then stream that back to the client (probably in batches). In this way, there's no concrete implementation of the
OrderedAsyncEnumerable
, but the interface does allow for some assumptions made in e.g. extension methods.
That said, I'm not sure what scenario this would enable that couldn't be accomplished by the calling code just assuming that the collection is ordered. The scenarios I can think of seem to be suited for
- Task<IOrderedEnumerable>
- IAsyncEnumerable
- Quite specific to a particular scenario making it probably best to just make that 'assumption' of sorted in the client code.
@otabekgb could you explain the scenario you'd need this for, for better musing about the solutions?
from asyncenumerable.
@otabekgb, I'm closing the suggestion due to lack of the input. Feel free to open if you have a concrete scenario.
from asyncenumerable.
Related Issues (20)
- Property-based testing HOT 2
- Source coming from multiple threads? HOT 1
- yield.ReturnAsync inside ParallelForEachAsync HOT 5
- .NET Core 3 / .NET Standard 2.1 HOT 10
- Take slow for large count value regardless of enumerable size HOT 3
- How to break on ParallelForEachAsync HOT 3
- Performance compared to using Task.WhenAll HOT 1
- Does not work on linux systems HOT 1
- Use the interfaces in a .NET Core 3.1 project
- Race condition in ParallelForEachAsync when exceptions are thrown HOT 3
- Change maxdegreeofparallelism during execution?
- the type IAsyncEnumerable exists in both AsyncInterfaces and interactive.async
- asyncEnumerable.ParallelForEachAsync() natively in C# 8
- Accidentally using Dasync's async methods on an EF DbSet blows up the world HOT 3
- How does ParallelForEachAsync compares to TPL's ActionBlock? HOT 1
- Using of GetAwaiter().GetResult() from ValueTask<T> in EnumeratorAdapter
- Question on requirements for build server and ncrunch
- ConfigureAwait(false) in asp.net _core_ not needed
- Using ParallelForEachAsync() for non-CPU-intensive tasks
- ParallelForEachAsync hangs when I update Microsoft.Bcl.AsyncInterfaces from 1.0.0.0 to 5.0.0.0
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from asyncenumerable.