浏览代码

Use ValueTask in Set.UnionWithAsync.

Bart De Smet 7 年之前
父节点
当前提交
cb1bed1272
共有 1 个文件被更改,包括 1 次插入1 次删除
  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);