,ReactiveUI.Extensions.Async.Subjects.ISubjectAsync{--0})}
ObservableAsync.Multicast(IObservableAsync, ISubjectAsync) 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
public static ConnectableObservableAsync<T> Multicast<T>(this IObservableAsync<T> source, ISubjectAsync<T> subject)
Summary: Creates a connectable observable sequence that shares a single subscription to the underlying sequence using the specified subject.
Type parameters
| Name | Description |
|---|---|
T | The type of the elements in the source sequence. |
Parameters
| Name | Type | Description |
|---|---|---|
source | [IObservableAsync | The source sequence. |
subject | [ISubjectAsync | The subject used to multicast the elements of the source sequence to multiple observers. Cannot be null. |
Returns: ConnectableObservableAsync
Remarks
The returned connectable observable will not begin emitting items until its Connect method is called. This allows multiple observers to subscribe before the sequence starts.