Summary
Projects each element of a sequence to an System.Collections.Generic.IAsyncEnumerable`1 and flattens the resulting sequences into one sequence.
Syntax
public static IAsyncEnumerable<TResult> MergeMap<TSource, TResult>(this IAsyncEnumerable<TSource> source, Func<TSource, IAsyncEnumerable<TResult>> selector)
Type Parameters
| Name |
Description |
| TSource |
The type of the elements of source. |
| TResult |
The type of the elements of the sequence returned by selector. |
Parameters
| Name |
Type |
Description |
| source |
IAsyncEnumerable<TSource> |
A sequence of values to project. |
| selector |
Func<TSource, IAsyncEnumerable<TResult>> |
A transform function to apply to each element. |
Return Value
| Type |
Description |
| IAsyncEnumerable<TResult> |
An System.Collections.Generic.IAsyncEnumerable`1 whose elements are the result of invoking the one-to-many transform function on each element of the input sequence. |