,System.Func{--0,System.Threading.Tasks.ValueTask},System.Action{System.Exception},System.Action)} ,System.Func{--0,System.Threading.Tasks.ValueTask},System.Action{System.Exception})} ,System.Func{--0,System.Threading.Tasks.ValueTask},System.Action)} ,System.Func{--0,System.Threading.Tasks.ValueTask})}
ReactiveExtensions.SubscribeSynchronous(IObservable, Func, Action, Action) method¶
Defined in
Type: ReactiveExtensions
Namespace: ReactiveUI.Primitives.Extensions.Reactive
Assembly: ReactiveUI.Primitives.Extensions.Reactive.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 IDisposable SubscribeSynchronous<T>(this IObservable<T> source, Func<T, ValueTask> onNext, Action<Exception> onError, Action onCompleted) where T : notnull - 2.
public static IDisposable SubscribeSynchronous<T>(this IObservable<T> source, Func<T, ValueTask> onNext, Action<Exception> onError) where T : notnull - 3.
public static IDisposable SubscribeSynchronous<T>(this IObservable<T> source, Func<T, ValueTask> onNext, Action onCompleted) where T : notnull - 4.
public static IDisposable SubscribeSynchronous<T>(this IObservable<T> source, Func<T, ValueTask> onNext) where T : notnull
1. Overload¶
public static IDisposable SubscribeSynchronous<T>(this IObservable<T> source, Func<T, ValueTask> onNext, Action<Exception> onError, Action onCompleted) where T : notnull
Type parameters
| Name | Description |
|---|---|
T | -- |
Parameters
| Name | Type | Description |
|---|---|---|
source | IObservable | -- |
onNext | Func | -- |
onError | Action | -- |
onCompleted | Action | -- |
Returns: IDisposable
2. Overload¶
public static IDisposable SubscribeSynchronous<T>(this IObservable<T> source, Func<T, ValueTask> onNext, Action<Exception> onError) where T : notnull
Type parameters
| Name | Description |
|---|---|
T | -- |
Parameters
| Name | Type | Description |
|---|---|---|
source | IObservable | -- |
onNext | Func | -- |
onError | Action | -- |
Returns: IDisposable
3. Overload¶
public static IDisposable SubscribeSynchronous<T>(this IObservable<T> source, Func<T, ValueTask> onNext, Action onCompleted) where T : notnull
Type parameters
| Name | Description |
|---|---|
T | -- |
Parameters
| Name | Type | Description |
|---|---|---|
source | IObservable | -- |
onNext | Func | -- |
onCompleted | Action | -- |
Returns: IDisposable
4. Overload¶
public static IDisposable SubscribeSynchronous<T>(this IObservable<T> source, Func<T, ValueTask> onNext) where T : notnull
Type parameters
| Name | Description |
|---|---|
T | -- |
Parameters
| Name | Type | Description |
|---|---|---|
source | IObservable | -- |
onNext | Func | -- |
Returns: IDisposable