1
0

IAsyncEnumerable.cs 812 B

123456789101112131415161718192021
  1. // Licensed to the .NET Foundation under one or more agreements.
  2. // The .NET Foundation licenses this file to you under the Apache 2.0 License.
  3. // See the LICENSE file in the project root for more information.
  4. namespace System.Collections.Generic
  5. {
  6. /// <summary>
  7. /// Asynchronous version of the IEnumerable&lt;T&gt; interface, allowing elements of the
  8. /// enumerable sequence to be retrieved asynchronously.
  9. /// </summary>
  10. /// <typeparam name="T">Element type.</typeparam>
  11. public interface IAsyncEnumerable<out T>
  12. {
  13. /// <summary>
  14. /// Gets an asynchronous enumerator over the sequence.
  15. /// </summary>
  16. /// <returns>Enumerator for asynchronous enumeration over the sequence.</returns>
  17. IAsyncEnumerator<T> GetEnumerator();
  18. }
  19. }