ConnectableSignalAsync class¶
Defined in
Namespace: ReactiveUI.Primitives.Async
Assembly: ReactiveUI.Primitives.Async.Core.dll
Full name: ReactiveUI.Primitives.Async.ConnectableSignalAsync<T>
Modifiers: public sealed
Summary¶
Represents an asynchronous observable sequence that can be connected to a data source, allowing control over when
the subscription to the underlying resource is established.
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, net471
Class hierarchy
classDiagram
class ConnectableSignalAsync~T~
class IObservableAsync~T~ {
<>
}
IObservableAsync~T~ <|.. ConnectableSignalAsync~T~
class IDisposable {
<>
}
IDisposable <|.. ConnectableSignalAsync~T~
Implements: IObservableAsync
Remarks¶
A connectable observable enables explicit control over the connection to the data source, which can be useful for sharing a single subscription among multiple observers or for deferring the start of data emission until explicitly connected. Implementations may vary in how connections are managed and whether multiple connections are supported concurrently.
Constructors¶
| Name | Summary |
|---|---|
| .ctor | Initializes a new instance of the [ConnectableSignalAsync](# class. |
Methods¶
| Name | Summary |
|---|---|
| ConnectAsync | Asynchronously establishes a connection to the target resource and returns a disposable handle for managing the connection's lifetime. |
| Dispose | Releases all resources used by the current instance of the class. |