@@ -598,7 +598,7 @@ public static IAsyncQueryable<TSource> IgnoreElements<TSource>(this IAsyncQuerya
598598#endif
599599 }
600600
601- public static Task < bool > IsEmptyAsync < TSource > ( this IAsyncQueryable < TSource > source , CancellationToken cancellationToken = default )
601+ public static ValueTask < bool > IsEmptyAsync < TSource > ( this IAsyncQueryable < TSource > source , CancellationToken cancellationToken = default )
602602 {
603603 if ( source == null )
604604 throw new ArgumentNullException ( nameof ( source ) ) ;
@@ -610,7 +610,7 @@ public static Task<bool> IsEmptyAsync<TSource>(this IAsyncQueryable<TSource> sou
610610#endif
611611 }
612612
613- public static Task < TSource > MaxAsync < TSource > ( this IAsyncQueryable < TSource > source , IComparer < TSource > comparer , CancellationToken cancellationToken = default )
613+ public static ValueTask < TSource > MaxAsync < TSource > ( this IAsyncQueryable < TSource > source , IComparer < TSource > comparer , CancellationToken cancellationToken = default )
614614 {
615615 if ( source == null )
616616 throw new ArgumentNullException ( nameof ( source ) ) ;
@@ -622,7 +622,7 @@ public static Task<TSource> MaxAsync<TSource>(this IAsyncQueryable<TSource> sour
622622#endif
623623 }
624624
625- public static Task < IList < TSource > > MaxByAsync < TSource , TKey > ( this IAsyncQueryable < TSource > source , Expression < Func < TSource , CancellationToken , ValueTask < TKey > > > keySelector , CancellationToken cancellationToken = default )
625+ public static ValueTask < IList < TSource > > MaxByAsync < TSource , TKey > ( this IAsyncQueryable < TSource > source , Expression < Func < TSource , CancellationToken , ValueTask < TKey > > > keySelector , CancellationToken cancellationToken = default )
626626 {
627627 if ( source == null )
628628 throw new ArgumentNullException ( nameof ( source ) ) ;
@@ -636,7 +636,7 @@ public static Task<IList<TSource>> MaxByAsync<TSource, TKey>(this IAsyncQueryabl
636636#endif
637637 }
638638
639- public static Task < IList < TSource > > MaxByAsync < TSource , TKey > ( this IAsyncQueryable < TSource > source , Expression < Func < TSource , TKey > > keySelector , CancellationToken cancellationToken = default )
639+ public static ValueTask < IList < TSource > > MaxByAsync < TSource , TKey > ( this IAsyncQueryable < TSource > source , Expression < Func < TSource , TKey > > keySelector , CancellationToken cancellationToken = default )
640640 {
641641 if ( source == null )
642642 throw new ArgumentNullException ( nameof ( source ) ) ;
@@ -650,7 +650,7 @@ public static Task<IList<TSource>> MaxByAsync<TSource, TKey>(this IAsyncQueryabl
650650#endif
651651 }
652652
653- public static Task < IList < TSource > > MaxByAsync < TSource , TKey > ( this IAsyncQueryable < TSource > source , Expression < Func < TSource , ValueTask < TKey > > > keySelector , CancellationToken cancellationToken = default )
653+ public static ValueTask < IList < TSource > > MaxByAsync < TSource , TKey > ( this IAsyncQueryable < TSource > source , Expression < Func < TSource , ValueTask < TKey > > > keySelector , CancellationToken cancellationToken = default )
654654 {
655655 if ( source == null )
656656 throw new ArgumentNullException ( nameof ( source ) ) ;
@@ -664,7 +664,7 @@ public static Task<IList<TSource>> MaxByAsync<TSource, TKey>(this IAsyncQueryabl
664664#endif
665665 }
666666
667- public static Task < IList < TSource > > MaxByAsync < TSource , TKey > ( this IAsyncQueryable < TSource > source , Expression < Func < TSource , CancellationToken , ValueTask < TKey > > > keySelector , IComparer < TKey > comparer , CancellationToken cancellationToken = default )
667+ public static ValueTask < IList < TSource > > MaxByAsync < TSource , TKey > ( this IAsyncQueryable < TSource > source , Expression < Func < TSource , CancellationToken , ValueTask < TKey > > > keySelector , IComparer < TKey > comparer , CancellationToken cancellationToken = default )
668668 {
669669 if ( source == null )
670670 throw new ArgumentNullException ( nameof ( source ) ) ;
@@ -678,7 +678,7 @@ public static Task<IList<TSource>> MaxByAsync<TSource, TKey>(this IAsyncQueryabl
678678#endif
679679 }
680680
681- public static Task < IList < TSource > > MaxByAsync < TSource , TKey > ( this IAsyncQueryable < TSource > source , Expression < Func < TSource , TKey > > keySelector , IComparer < TKey > comparer , CancellationToken cancellationToken = default )
681+ public static ValueTask < IList < TSource > > MaxByAsync < TSource , TKey > ( this IAsyncQueryable < TSource > source , Expression < Func < TSource , TKey > > keySelector , IComparer < TKey > comparer , CancellationToken cancellationToken = default )
682682 {
683683 if ( source == null )
684684 throw new ArgumentNullException ( nameof ( source ) ) ;
@@ -692,7 +692,7 @@ public static Task<IList<TSource>> MaxByAsync<TSource, TKey>(this IAsyncQueryabl
692692#endif
693693 }
694694
695- public static Task < IList < TSource > > MaxByAsync < TSource , TKey > ( this IAsyncQueryable < TSource > source , Expression < Func < TSource , ValueTask < TKey > > > keySelector , IComparer < TKey > comparer , CancellationToken cancellationToken = default )
695+ public static ValueTask < IList < TSource > > MaxByAsync < TSource , TKey > ( this IAsyncQueryable < TSource > source , Expression < Func < TSource , ValueTask < TKey > > > keySelector , IComparer < TKey > comparer , CancellationToken cancellationToken = default )
696696 {
697697 if ( source == null )
698698 throw new ArgumentNullException ( nameof ( source ) ) ;
@@ -718,7 +718,7 @@ public static IAsyncQueryable<TSource> Merge<TSource>(this IAsyncQueryable<IAsyn
718718#endif
719719 }
720720
721- public static Task < TSource > MinAsync < TSource > ( this IAsyncQueryable < TSource > source , IComparer < TSource > comparer , CancellationToken cancellationToken = default )
721+ public static ValueTask < TSource > MinAsync < TSource > ( this IAsyncQueryable < TSource > source , IComparer < TSource > comparer , CancellationToken cancellationToken = default )
722722 {
723723 if ( source == null )
724724 throw new ArgumentNullException ( nameof ( source ) ) ;
@@ -730,7 +730,7 @@ public static Task<TSource> MinAsync<TSource>(this IAsyncQueryable<TSource> sour
730730#endif
731731 }
732732
733- public static Task < IList < TSource > > MinByAsync < TSource , TKey > ( this IAsyncQueryable < TSource > source , Expression < Func < TSource , CancellationToken , ValueTask < TKey > > > keySelector , CancellationToken cancellationToken = default )
733+ public static ValueTask < IList < TSource > > MinByAsync < TSource , TKey > ( this IAsyncQueryable < TSource > source , Expression < Func < TSource , CancellationToken , ValueTask < TKey > > > keySelector , CancellationToken cancellationToken = default )
734734 {
735735 if ( source == null )
736736 throw new ArgumentNullException ( nameof ( source ) ) ;
@@ -744,7 +744,7 @@ public static Task<IList<TSource>> MinByAsync<TSource, TKey>(this IAsyncQueryabl
744744#endif
745745 }
746746
747- public static Task < IList < TSource > > MinByAsync < TSource , TKey > ( this IAsyncQueryable < TSource > source , Expression < Func < TSource , TKey > > keySelector , CancellationToken cancellationToken = default )
747+ public static ValueTask < IList < TSource > > MinByAsync < TSource , TKey > ( this IAsyncQueryable < TSource > source , Expression < Func < TSource , TKey > > keySelector , CancellationToken cancellationToken = default )
748748 {
749749 if ( source == null )
750750 throw new ArgumentNullException ( nameof ( source ) ) ;
@@ -758,7 +758,7 @@ public static Task<IList<TSource>> MinByAsync<TSource, TKey>(this IAsyncQueryabl
758758#endif
759759 }
760760
761- public static Task < IList < TSource > > MinByAsync < TSource , TKey > ( this IAsyncQueryable < TSource > source , Expression < Func < TSource , ValueTask < TKey > > > keySelector , CancellationToken cancellationToken = default )
761+ public static ValueTask < IList < TSource > > MinByAsync < TSource , TKey > ( this IAsyncQueryable < TSource > source , Expression < Func < TSource , ValueTask < TKey > > > keySelector , CancellationToken cancellationToken = default )
762762 {
763763 if ( source == null )
764764 throw new ArgumentNullException ( nameof ( source ) ) ;
@@ -772,7 +772,7 @@ public static Task<IList<TSource>> MinByAsync<TSource, TKey>(this IAsyncQueryabl
772772#endif
773773 }
774774
775- public static Task < IList < TSource > > MinByAsync < TSource , TKey > ( this IAsyncQueryable < TSource > source , Expression < Func < TSource , CancellationToken , ValueTask < TKey > > > keySelector , IComparer < TKey > comparer , CancellationToken cancellationToken = default )
775+ public static ValueTask < IList < TSource > > MinByAsync < TSource , TKey > ( this IAsyncQueryable < TSource > source , Expression < Func < TSource , CancellationToken , ValueTask < TKey > > > keySelector , IComparer < TKey > comparer , CancellationToken cancellationToken = default )
776776 {
777777 if ( source == null )
778778 throw new ArgumentNullException ( nameof ( source ) ) ;
@@ -786,7 +786,7 @@ public static Task<IList<TSource>> MinByAsync<TSource, TKey>(this IAsyncQueryabl
786786#endif
787787 }
788788
789- public static Task < IList < TSource > > MinByAsync < TSource , TKey > ( this IAsyncQueryable < TSource > source , Expression < Func < TSource , TKey > > keySelector , IComparer < TKey > comparer , CancellationToken cancellationToken = default )
789+ public static ValueTask < IList < TSource > > MinByAsync < TSource , TKey > ( this IAsyncQueryable < TSource > source , Expression < Func < TSource , TKey > > keySelector , IComparer < TKey > comparer , CancellationToken cancellationToken = default )
790790 {
791791 if ( source == null )
792792 throw new ArgumentNullException ( nameof ( source ) ) ;
@@ -800,7 +800,7 @@ public static Task<IList<TSource>> MinByAsync<TSource, TKey>(this IAsyncQueryabl
800800#endif
801801 }
802802
803- public static Task < IList < TSource > > MinByAsync < TSource , TKey > ( this IAsyncQueryable < TSource > source , Expression < Func < TSource , ValueTask < TKey > > > keySelector , IComparer < TKey > comparer , CancellationToken cancellationToken = default )
803+ public static ValueTask < IList < TSource > > MinByAsync < TSource , TKey > ( this IAsyncQueryable < TSource > source , Expression < Func < TSource , ValueTask < TKey > > > keySelector , IComparer < TKey > comparer , CancellationToken cancellationToken = default )
804804 {
805805 if ( source == null )
806806 throw new ArgumentNullException ( nameof ( source ) ) ;
0 commit comments