<PackageReference Include="AsyncEnumerator" Version="2.0.1" />

System.Collections.Async.AsyncEnumerableAdapterExtensions

public static class AsyncEnumerableAdapterExtensions
Extension methods for IAsyncEnumerable<T> for backward compatibility with version 1 of this libraray. Not recommended to use.
public static IEnumerator GetEnumerator(this IAsyncEnumerable asyncEnumerable)

Creates an enumerator that iterates through a collection synchronously. This method is marked as [Obsolete] to discourage you from using this synchronous version of the method instead of GetAsyncEnumeratorAsync, what might lead to dead-locks in ASP.NET or WPF applications.

public static IEnumerator<T> GetEnumerator<T>(this IAsyncEnumerable<T> asyncEnumerable)

Creates an enumerator that iterates through a collection synchronously. This method is marked as [Obsolete] to discourage you from using this synchronous version of the method instead of GetAsyncEnumeratorAsync, what might lead to dead-locks in ASP.NET or WPF applications.

public static bool MoveNext(this IAsyncEnumerator asyncEnumerator)

Advances the enumerator to the next element of the collection synchronously. This method is marked as [Obsolete] to discourage you from using this synchronous version of the method instead of MoveNextAsync, what might lead to dead-locks in ASP.NET or WPF applications.

public static IEnumerable ToEnumerable(this IAsyncEnumerable asyncEnumerable)

Converts IAsyncEnumerable to IEnumerable. This method is marked as [Obsolete] to discourage you from doing such conversion, which defeats the whole purpose of having a non-blocking async enumeration, and what might lead to dead-locks in ASP.NET or WPF applications.

public static IEnumerable<T> ToEnumerable<T>(this IAsyncEnumerable<T> asyncEnumerable)

Converts IAsyncEnumerable<T> to IEnumerable<T>. This method is marked as [Obsolete] to discourage you from doing such conversion, which defeats the whole purpose of having a non-blocking async enumeration, and what might lead to dead-locks in ASP.NET or WPF applications.

public static IEnumerator ToEnumerator(this IAsyncEnumerator asyncEnumerator)

Converts IAsyncEnumerator to IEnumerator. This method is marked as [Obsolete] to discourage you from doing such conversion, which defeats the whole purpose of having a non-blocking async enumeration, and what might lead to dead-locks in ASP.NET or WPF applications.

public static IEnumerator<T> ToEnumerator<T>(this IAsyncEnumerator<T> asyncEnumerator)

Converts IAsyncEnumerator<T> to IEnumerator<T>. This method is marked as [Obsolete] to discourage you from doing such conversion, which defeats the whole purpose of having a non-blocking async enumeration, and what might lead to dead-locks in ASP.NET or WPF applications.