Skip to content

})} })} ,ReactiveUI.Extensions.Async.IObservableAsync{--0})}

ObservableAsync.Concat(IObservableAsync>) method

Defined in

Type: ObservableAsync Namespace: ReactiveUI.Extensions.Async Assembly: ReactiveUI.Extensions.dll

Applies to

net10.0, net10.0-browserwasm1.0, net10.0-desktop1.0, net9.0, net9.0-browserwasm1.0, net9.0-desktop1.0, net8.0, net8.0-ios17.5, net8.0-maccatalyst17.5, net8.0-macos14.2, net8.0-macos14.5, net8.0-tvos17.2, netstandard2.1, net462, net481

Overloads

  • 1. public static IObservableAsync<T> Concat<T>(this IObservableAsync<IObservableAsync<T>> @this)
  • 2. public static IObservableAsync<T> Concat<T>(this IEnumerable<IObservableAsync<T>> @this)
  • 3. public static IObservableAsync<T> Concat<T>(this IObservableAsync<T> @this, IObservableAsync<T> second)

1. Overload

public static IObservableAsync<T> Concat<T>(this IObservableAsync<IObservableAsync<T>> @this)

View source

Summary: Concatenates a sequence of asynchronous observable sequences into a single observable sequence, subscribing to each inner sequence in order only after the previous one completes.

Type parameters

NameDescription
TThe type of the elements emitted by the inner observable sequences.

Parameters

NameTypeDescription
this[IObservableAsync>](#The source observable sequence whose elements are themselves observable sequences to be concatenated. Cannot be null.

Returns: IObservableAsync -- An observable sequence that emits the elements of each inner observable sequence in order, waiting for each to complete before subscribing to the next.

Remarks

If any inner observable sequence signals an error, the resulting sequence will propagate that error and terminate immediately. The concatenation is performed in a deferred and sequential manner, ensuring that only one inner sequence is active at a time.

2. Overload

public static IObservableAsync<T> Concat<T>(this IEnumerable<IObservableAsync<T>> @this)

View source

Summary: Concatenates multiple asynchronous observable sequences into a single sequence that emits items from each source in order.

Type parameters

NameDescription
TThe type of the elements in the observable sequences.

Parameters

NameTypeDescription
thisIEnumerable>A collection of asynchronous observable sequences to concatenate. Cannot be null.

Returns: IObservableAsync -- An asynchronous observable sequence that emits all items from each source sequence in the order they appear in the collection.

Remarks

Each source sequence is subscribed to only after the previous one completes. If any source sequence signals an error, concatenation stops and the error is propagated to the observer.

3. Overload

public static IObservableAsync<T> Concat<T>(this IObservableAsync<T> @this, IObservableAsync<T> second)

View source

Summary: Concatenates two asynchronous observable sequences into a single sequence that emits all elements from the first sequence, followed by all elements from the second sequence.

Type parameters

NameDescription
TThe type of the elements in the observable sequences.

Parameters

NameTypeDescription
this[IObservableAsync](#The first observable sequence to concatenate. Cannot be null.
second[IObservableAsync](#The second observable sequence to concatenate. Cannot be null.

Returns: IObservableAsync -- An observable sequence that emits all elements from the first sequence, followed by all elements from the second sequence.

Remarks

The resulting sequence emits all items from the first observable before subscribing to and emitting items from the second observable. If either sequence signals an error, the concatenation terminates and the error is propagated to observers.