Skip to content

Commit

Permalink
Add comment to SelectMany.
Browse files Browse the repository at this point in the history
  • Loading branch information
bartdesmet committed Feb 25, 2019
1 parent ad78405 commit d2b8eea
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ public static IAsyncEnumerable<TResult> SelectMany<TSource, TResult>(this IAsync
return new SelectManyAsyncIterator<TSource, TResult>(source, selector);
}

// REVIEW: Should we keep these overloads that return ValueTask<IAsyncEnumerable<TResult>>? One could argue the selector is async twice.

public static IAsyncEnumerable<TResult> SelectMany<TSource, TResult>(this IAsyncEnumerable<TSource> source, Func<TSource, ValueTask<IAsyncEnumerable<TResult>>> selector)
{
if (source == null)
Expand Down

0 comments on commit d2b8eea

Please sign in to comment.