Explorar el Código

Use ValueTask in Set.UnionWithAsync.

Bart De Smet hace 7 años
padre
commit
cb1bed1272
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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);