1234567891011121314151617181920212223 |
- // Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information.
- using System;
- namespace System.Collections.Generic
- {
- /// <summary>
- /// Asynchronous version of the IEnumerable<T> interface, allowing elements of the
- /// enumerable sequence to be retrieved asynchronously.
- /// </summary>
- /// <typeparam name="T">Element type.</typeparam>
- public interface IAsyncEnumerable<
- #if !NO_VARIANCE
- out
- #endif
- T>
- {
- /// <summary>
- /// Gets an asynchronous enumerator over the sequence.
- /// </summary>
- /// <returns>Enumerator for asynchronous enumeration over the sequence.</returns>
- IAsyncEnumerator<T> GetEnumerator();
- }
- }
|