SubjectAsync class¶
Defined in
Namespace: ReactiveUI.Extensions.Async.Subjects
Assembly: ReactiveUI.Extensions.dll
Full name: ReactiveUI.Extensions.Async.Subjects.SubjectAsync
Modifiers: public static
Summary¶
Provides factory methods for creating asynchronous subject instances with configurable publishing and state
retention behaviors.
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
Remarks¶
The SubjectAsync class offers a variety of static methods to create subjects that support different publishing strategies (such as serial or concurrent) and state management options (stateful or stateless). These subjects can be used to broadcast values to multiple observers in asynchronous scenarios. Use the provided creation options to customize the subject's behavior according to your application's requirements.
Methods¶
| Name | Summary |
|---|---|
| static Create | Creates a new asynchronous subject instance for the specified type. |
| static CreateBehavior | Creates a new asynchronous behavior subject initialized with the specified starting value. |
| static CreateReplayLatest | Creates a new asynchronous subject that replays only the most recent value to new subscribers. |