System.Collections.Generic

January 13, 2025 ยท View on GitHub

 namespace System.Collections.Generic {
+    public interface IAsyncEnumerable<out T> {
+        IAsyncEnumerator<T> GetAsyncEnumerator(CancellationToken cancellationToken = default(CancellationToken));
+    }
+    public interface IAsyncEnumerator<out T> : IAsyncDisposable {
+        T Current { get; }
+        ValueTask<bool> MoveNextAsync();
+    }
 }