a575963da9
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
24 lines
769 B
C#
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<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();
|
|
}
|
|
}
|