ToListAsync<T>(Task<IEnumerable<T>>, Func<T, bool>)

public static Task<IList<T>> ToListAsync<T>(Task<IEnumerable<T>> enumerable, Func<T, bool> filter)
Returns:
Task<IList<T>>

Parameters

enumerable Task<IEnumerable<T>>
filter Func<T, bool>

Type Parameters

T

ToListAsync<T>(ValueTask<IEnumerable<T>>, Func<T, bool>)

public static async ValueTask<IList<T>> ToListAsync<T>(ValueTask<IEnumerable<T>> enumerable, Func<T, bool> filter)
Returns:
ValueTask<IList<T>>

Parameters

enumerable ValueTask<IEnumerable<T>>
filter Func<T, bool>

Type Parameters

T
In this article