Skip to content

Latest commit

 

History

History
17 lines (16 loc) · 770 Bytes

README.md

File metadata and controls

17 lines (16 loc) · 770 Bytes

Version NuGet downloads
LINQ extension methods for Task<IEnumerable<T>> and ValueTask<IEnumerable<T>>.

var enumerableTask = Task.FromResult(new [] { 1, 2, 3, 4, 5});

var newEnumerable = await enumerableTask
	.Select(x => x * 2)
	.ToImmutableArrayAsync();

Available extensions:

  • ToArrayAsync(), ToImmutableArrayAsync()
  • ToListAsync(), ToImmutableListAsync()
  • ToLookupAsync()
  • ToHashSetAsync(), ToImmutableHashSetAsync()
  • ToDictionaryAsync()
  • Select(), SelectMany()