ObservableSubscriptionExtensions class¶
Defined in
Namespace: ReactiveUI.Extensions
Assembly: ReactiveUI.Extensions.dll
Full name: ReactiveUI.Extensions.ObservableSubscriptionExtensions
Modifiers: public static
Summary¶
Provides extension methods for subscribing to and handling reactive sequences
in a synchronous or blocking manner. These methods offer utility functions
to retrieve emitted values, handle completion, and capture errors from observables.
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
Methods¶
| Name | Summary |
|---|---|
| static SubscribeGetValue | Subscribes to source and returns the last value emitted during the synchronous Subscribe call. |
| static SubscribeAndComplete | Subscribes to a [Unit](# observable, discarding the value. Safe only when the sequence terminates synchronously. |
| static SubscribeGetError | Subscribes to source and returns any error emitted during the synchronous Subscribe call. |
| static WaitForValue | Blocks until source emits a value, errors, or completes (default 30s timeout). |
| static WaitForCompletion | Blocks until a [Unit](# source completes (default 30s timeout); rethrows any captured error. |
| static WaitForError | Blocks until source terminates; returns any captured error (does NOT rethrow). Default 30s timeout. |