| 1 |
// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information. |
| 2 |
using System; |
| 3 |
|
| 4 |
namespace System.Collections.Generic |
| 5 |
{ |
| 6 |
/// <summary> |
| 7 |
/// Asynchronous version of the IEnumerable<T> 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< |
| 12 |
#if !NO_VARIANCE |
| 13 |
out |
| 14 |
#endif |
| 15 |
T> |
| 16 |
{ |
| 17 |
/// <summary> |
| 18 |
/// Gets an asynchronous enumerator over the sequence. |
| 19 |
/// </summary> |
| 20 |
/// <returns>Enumerator for asynchronous enumeration over the sequence.</returns> |
| 21 |
IAsyncEnumerator<T> GetEnumerator(); |
| 22 |
} |
| 23 |
} |