瀏覽代碼

Fixing omission.

Bart De Smet 8 年之前
父節點
當前提交
329bcd5f3d
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      Ix.NET/Source/System.Linq.Async/System/Linq/Operators/Repeat.cs

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

@@ -14,7 +14,7 @@ namespace System.Linq
             if (count < 0)
                 throw new ArgumentOutOfRangeException(nameof(count));
 
-            return Enumerable.Repeat(element, count).ToAsyncEnumerable();
+            return new RepeatAsyncIterator<TResult>(element, count);
         }
 
         private sealed class RepeatAsyncIterator<TResult> : AsyncIterator<TResult>