public static IAsyncEnumerable<T> Merge<T>(
this IEnumerable<IAsyncEnumerable<T>> sources
)
<ExtensionAttribute>
Public Shared Function Merge(Of T) (
sources As IEnumerable(Of IAsyncEnumerable(Of T))
) As IAsyncEnumerable(Of T)
public:
[ExtensionAttribute]
generic<typename T>
static IAsyncEnumerable<T>^ Merge(
IEnumerable<IAsyncEnumerable<T>^>^ sources
)
[<ExtensionAttribute>]
static member Merge :
sources : IEnumerable<IAsyncEnumerable<'T>> -> IAsyncEnumerable<'T>
This operator uses deferred execution and streams its results.
The elements in the resulting stream may appear in a different order than their order in sources.
When disposed part of the way, there is a best-effort attempt to cancel all iterations that are in flight. This requires that all asynchronous streams in sources properly honour timely cancellation.