浏览代码

Use enumerators for iterators at the moment.

Bart De Smet 6 年之前
父节点
当前提交
9056d39084

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

@@ -23,7 +23,7 @@ namespace System.Linq
 #if CSHARP8 && USE_ASYNC_ITERATOR && ASYNC_ITERATOR_CAN_RETURN_AETOR
             return Create(Core);
 
-            async IAsyncEnumerable<TSource> Core(CancellationToken cancellationToken)
+            async IAsyncEnumerator<TSource> Core(CancellationToken cancellationToken)
             {
                 var set = new Set<TSource>(comparer);
 

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

@@ -23,7 +23,7 @@ namespace System.Linq
 #if CSHARP8 && USE_ASYNC_ITERATOR && ASYNC_ITERATOR_CAN_RETURN_AETOR
             return Create(Core);
 
-            async IAsyncEnumerable<TSource> Core(CancellationToken cancellationToken)
+            async IAsyncEnumerator<TSource> Core(CancellationToken cancellationToken)
             {
                 var set = new Set<TSource>(comparer);