Skip to content
Permalink
Branch: master
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
25 lines (21 sloc) 1.08 KB
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
using System.Threading.Tasks;
namespace System.Collections.Generic
{
/// <summary>Supports a simple asynchronous iteration over a generic collection.</summary>
/// <typeparam name="T">The type of objects to enumerate.</typeparam>
public interface IAsyncEnumerator<out T> : IAsyncDisposable
{
/// <summary>Advances the enumerator asynchronously to the next element of the collection.</summary>
/// <returns>
/// A <see cref="ValueTask{Boolean}"/> that will complete with a result of <c>true</c> if the enumerator
/// was successfully advanced to the next element, or <c>false</c> if the enumerator has passed the end
/// of the collection.
/// </returns>
ValueTask<bool> MoveNextAsync();
/// <summary>Gets the element in the collection at the current position of the enumerator.</summary>
T Current { get; }
}
}
You can’t perform that action at this time.