Jo Shields a575963da9 Imported Upstream version 3.6.0
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
2014-08-13 10:39:27 +01:00

24 lines
769 B
C#

// 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&lt;T&gt; 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();
}
}