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

System.Collections.Generic.IEnumerableExtensions

public static class IEnumerableExtensions
Converts generic IEnumerable to IAsyncEnumerable
namespace System.Collections.Generic { public static class IEnumerableExtensions { public static System.Collections.Async.IAsyncEnumerable<T> ToAsyncEnumerable<T>(this IEnumerable<T> enumerable, bool runSynchronously = true); public static System.Collections.Async.IAsyncEnumerator<T> GetAsyncEnumerator<T>(this IEnumerable<T> enumerable, bool runSynchronously = true); public static System.Collections.Async.IAsyncEnumerator<T> ToAsyncEnumerator<T>(this IEnumerator<T> enumerator, bool runSynchronously = true); } }