Răsfoiți Sursa

Use ValueTask in Set.UnionWithAsync.

Bart De Smet 7 ani în urmă
părinte
comite
cb1bed1272
1 a modificat fișierele cu 1 adăugiri și 1 ștergeri
  1. 1 1
      Ix.NET/Source/System.Linq.Async/System/Linq/Set.cs

+ 1 - 1
Ix.NET/Source/System.Linq.Async/System/Linq/Set.cs

@@ -145,7 +145,7 @@ namespace System.Linq
             _slots = newSlots;
         }
 
-        public async Task UnionWithAsync(IAsyncEnumerable<TElement> other, CancellationToken cancellationToken)
+        public async ValueTask UnionWithAsync(IAsyncEnumerable<TElement> other, CancellationToken cancellationToken)
         {
             var enu = other.GetAsyncEnumerator(cancellationToken);