Support of 'IAsyncComparer' for Linq operations.
- Dominant language
- C#
- Stars
- 7.2k
- Forks
- 798
- PR merge metrics
- No merged PRs in 30d
Description
Some Linq operations such as OrderBy or ThenBy might require asynchronous comparers for custom objects. Consider the following case:
```
public class ExoticObject {...}
public class ExoticComparer : IAsyncComparer
{
public async ValueTask Compare(ExoticObject e1, ExoticObject e2)
{
return await ..... // Some asynchronous code
}
}
```
The following expression would make use of an asynchronous comparer:
```
IOrderedAsyncEnumerable orderedOnes =
listOfExotics().OrderByAwait(SomeAsyncKeySelector, new ExoticComparer());
```
Please provide an IAsyncComparer interface and support for Linq operations.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.