/// <summary> /// Merges elements from all of the specified async-enumerable sequences into a single async-enumerable sequence. /// </summary> /// <typeparam name="TSource">The type of the elements in the source sequences.</typeparam> /// <param name="sources">Observable sequences.</param> /// <returns>The async-enumerable sequence that merges the elements of the async-enumerable sequences.</returns> /// <exception cref="ArgumentNullException"><paramref name="sources"/> is null.</exception> public static IAsyncEnumerable <TSource> MergeConcurrentlyUntilFirstException <TSource>( params IAsyncEnumerable <TSource>[] sources) { return(AsyncEnumerableEx.Merge(sources)); }
/// <inheritdoc cref="AsyncEnumerableEx.Merge{TSource}(IAsyncEnumerable{TSource}[])"/> public static IAsyncEnumerable <TSource> ConcurrentMerge <TSource>(params IAsyncEnumerable <TSource>[] sources) => AsyncEnumerableEx.Merge(sources);
/// <summary> /// Repeats the element indefinitely. /// </summary> /// <typeparam name="TResult">The type of the elements in the source sequence.</typeparam> /// <param name="element"> Element to repeat.</param> /// <returns>The async-enumerable sequence producing the element repeatedly and sequentially.</returns> public static IAsyncEnumerable <TResult> Repeat <TResult>(TResult element) { return(AsyncEnumerableEx.Repeat(element)); }