diff --git a/README.md b/README.md index ca3f50df..6d14787d 100644 --- a/README.md +++ b/README.md @@ -1147,8 +1147,9 @@ share one subscription instead of starting the work over each time. | `SubscribePrimitives()` and its 4 overloads | Gives you the same five methods under a name that cannot clash with another library. | `Subscribe` | | `SubscribeSafe(observer)` | Subscribes and keeps your observer's exceptions away from the producer. | `SubscribeSafe` | | `SubscribeSafePrimitives(observer)` | Gives you the same method under a name that cannot clash. | `SubscribeSafe` | -| `SubscribeSafe(onNext, onError)`, `SubscribeSafe(onNext, onError, onCompleted)`, `SubscribeSafe(onError)`, `SubscribeSafe(onError, onCompleted)` | Callback forms of `SubscribeSafe`. | `SubscribeSafe` | -| `LinqExtensions.SubscribeSafe(source, ...)`, 14 static overloads | Lets a nullable source pick one overload without ambiguity; the `params` array is a marker and is never read. | `SubscribeSafe` | +| `SubscribeSafe(onNext)`, `SubscribeSafe(onNext, onError)`, `SubscribeSafe(onNext, onError, onCompleted)` | Callback forms of `SubscribeSafe`. A lone delegate is `onNext`. With no error handler, a source error is rethrown. | `SubscribeSafe` | +| `SubscribeSafeErrors(onError)`, `SubscribeSafeErrors(onError, onCompleted)` | Subscribes with error and completion callbacks only. Values are ignored. | None | +| `LinqExtensions.SubscribeSafe(source, ...)`, 12 static overloads, and `LinqExtensions.SubscribeSafeErrors(source, ...)`, 6 static overloads | Lets a nullable source pick one overload without ambiguity; the `params` array is a marker and is never read. | `SubscribeSafe` | | `IObserver.FastForEach(source)` | Pushes a whole collection into an observer and indexes arrays and lists directly. | - | | `ObserveOn(sequencer)` | Delivers notifications to subscribers on the sequencer you name. | `ObserveOn` | | `WitnessOn(sequencer)` | Another name for `ObserveOn`. | `ObserveOn` | diff --git a/src/Primitives.Shared/SignalOperatorParityMixins.RxNames.SubscribeSafe.cs b/src/Primitives.Shared/SignalOperatorParityMixins.RxNames.SubscribeSafe.cs index fe6a19d3..d647a24b 100644 --- a/src/Primitives.Shared/SignalOperatorParityMixins.RxNames.SubscribeSafe.cs +++ b/src/Primitives.Shared/SignalOperatorParityMixins.RxNames.SubscribeSafe.cs @@ -131,88 +131,61 @@ public static IDisposable SubscribeSafe( return SubscribeSafeCore(source, Witness.Create(onNext, onError, onCompleted)); } - /// Subscribes nullable reference terminal callbacks with downstream exception protection from static-call syntax. + /// Subscribes a nullable reference value callback with downstream exception protection from static-call syntax. /// The non-nullable reference value type. /// The source sequence. - /// The action to invoke for an error. + /// The action to invoke for each value. /// Reserved for nullable overload resolution. /// A disposable that cancels the subscription. /// A required argument is . + /// With no error handler, a source error is rethrown to the caller of the source's OnError. [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] public static IDisposable SubscribeSafe( IObservable source, - Action onError, + Action onNext, params bool[] allowNullable) where T : class { _ = allowNullable; - return SubscribeSafeCore(source, Witness.Create(static _ => { }, onError)); + return SubscribeSafeCore(source, Witness.Create(value => onNext(value!))); } - /// Subscribes nullable value terminal callbacks with downstream exception protection from static-call syntax. + /// Subscribes a nullable value callback with downstream exception protection from static-call syntax. /// The non-nullable value type. /// The source sequence. - /// The action to invoke for an error. + /// The action to invoke for each value. /// Reserved for nullable overload resolution. /// A disposable that cancels the subscription. /// A required argument is . + /// With no error handler, a source error is rethrown to the caller of the source's OnError. [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] - [System.Diagnostics.CodeAnalysis.SuppressMessage( - "Design", - "SST2318:Members should not have identical bodies", - Justification = "The class-constrained and struct-constrained overloads cannot forward to one another.")] public static IDisposable SubscribeSafe( IObservable source, - Action onError, + Action onNext, params bool[] allowNullable) where T : struct { _ = allowNullable; - return SubscribeSafeCore(source, Witness.Create(static _ => { }, onError)); - } - - /// Subscribes nullable reference terminal callbacks with downstream exception protection from static-call syntax. - /// The non-nullable reference value type. - /// The source sequence. - /// The action to invoke for an error. - /// The action to invoke when the sequence completes. - /// Reserved for nullable overload resolution. - /// A disposable that cancels the subscription. - /// A required argument is . - [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] - public static IDisposable SubscribeSafe( - IObservable source, - Action onError, - Action onCompleted, - params bool[] allowNullable) - where T : class - { - _ = allowNullable; - return SubscribeSafeCore(source, Witness.Create(static _ => { }, onError, onCompleted)); + return SubscribeSafeCore(source, Witness.Create(onNext)); } - /// Subscribes nullable value terminal callbacks with downstream exception protection from static-call syntax. + /// Subscribes non-nullable value callbacks with downstream exception protection from static-call syntax. /// The non-nullable value type. /// The source sequence. - /// The action to invoke for an error. - /// The action to invoke when the sequence completes. - /// Reserved for nullable overload resolution. + /// The action to invoke for each value. + /// Reserved for value-type overload resolution. /// A disposable that cancels the subscription. /// A required argument is . + /// With no error handler, a source error is rethrown to the caller of the source's OnError. [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] - [System.Diagnostics.CodeAnalysis.SuppressMessage( - "Design", - "SST2318:Members should not have identical bodies", - Justification = "The class-constrained and struct-constrained overloads cannot forward to one another.")] public static IDisposable SubscribeSafe( - IObservable source, - Action onError, - Action onCompleted, - params bool[] allowNullable) + IObservable source, + Action onNext, + params byte[] allowValueType) where T : struct { - _ = allowNullable; - return SubscribeSafeCore(source, Witness.Create(static _ => { }, onError, onCompleted)); + _ = allowValueType; + return SubscribeSafeCore(source, Witness.Create(onNext)); } /// Subscribes a non-nullable value observer with downstream exception protection from static-call syntax. @@ -275,7 +248,91 @@ public static IDisposable SubscribeSafe( return SubscribeSafeCore(source, Witness.Create(onNext, onError, onCompleted)); } - /// Subscribes non-nullable value terminal callbacks with downstream exception protection from static-call syntax. + /// Subscribes nullable reference error callbacks with downstream exception protection from static-call syntax. + /// The non-nullable reference value type. + /// The source sequence. + /// The action to invoke for an error. + /// Reserved for nullable overload resolution. + /// A disposable that cancels the subscription. + /// A required argument is . + [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] + public static IDisposable SubscribeSafeErrors( + IObservable source, + Action onError, + params bool[] allowNullable) + where T : class + { + _ = allowNullable; + return SubscribeSafeCore(source, Witness.Create(static _ => { }, onError)); + } + + /// Subscribes nullable value error callbacks with downstream exception protection from static-call syntax. + /// The non-nullable value type. + /// The source sequence. + /// The action to invoke for an error. + /// Reserved for nullable overload resolution. + /// A disposable that cancels the subscription. + /// A required argument is . + [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] + [System.Diagnostics.CodeAnalysis.SuppressMessage( + "Design", + "SST2318:Members should not have identical bodies", + Justification = "The class-constrained and struct-constrained overloads cannot forward to one another.")] + public static IDisposable SubscribeSafeErrors( + IObservable source, + Action onError, + params bool[] allowNullable) + where T : struct + { + _ = allowNullable; + return SubscribeSafeCore(source, Witness.Create(static _ => { }, onError)); + } + + /// Subscribes nullable reference error and completion callbacks with downstream exception protection from static-call syntax. + /// The non-nullable reference value type. + /// The source sequence. + /// The action to invoke for an error. + /// The action to invoke when the sequence completes. + /// Reserved for nullable overload resolution. + /// A disposable that cancels the subscription. + /// A required argument is . + [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] + public static IDisposable SubscribeSafeErrors( + IObservable source, + Action onError, + Action onCompleted, + params bool[] allowNullable) + where T : class + { + _ = allowNullable; + return SubscribeSafeCore(source, Witness.Create(static _ => { }, onError, onCompleted)); + } + + /// Subscribes nullable value error and completion callbacks with downstream exception protection from static-call syntax. + /// The non-nullable value type. + /// The source sequence. + /// The action to invoke for an error. + /// The action to invoke when the sequence completes. + /// Reserved for nullable overload resolution. + /// A disposable that cancels the subscription. + /// A required argument is . + [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] + [System.Diagnostics.CodeAnalysis.SuppressMessage( + "Design", + "SST2318:Members should not have identical bodies", + Justification = "The class-constrained and struct-constrained overloads cannot forward to one another.")] + public static IDisposable SubscribeSafeErrors( + IObservable source, + Action onError, + Action onCompleted, + params bool[] allowNullable) + where T : struct + { + _ = allowNullable; + return SubscribeSafeCore(source, Witness.Create(static _ => { }, onError, onCompleted)); + } + + /// Subscribes non-nullable value error callbacks with downstream exception protection from static-call syntax. /// The non-nullable value type. /// The source sequence. /// The action to invoke for an error. @@ -283,7 +340,7 @@ public static IDisposable SubscribeSafe( /// A disposable that cancels the subscription. /// A required argument is . [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] - public static IDisposable SubscribeSafe( + public static IDisposable SubscribeSafeErrors( IObservable source, Action onError, params byte[] allowValueType) @@ -293,7 +350,7 @@ public static IDisposable SubscribeSafe( return SubscribeSafeCore(source, Witness.Create(static _ => { }, onError)); } - /// Subscribes non-nullable value terminal callbacks with downstream exception protection from static-call syntax. + /// Subscribes non-nullable value error and completion callbacks with downstream exception protection from static-call syntax. /// The non-nullable value type. /// The source sequence. /// The action to invoke for an error. @@ -302,7 +359,7 @@ public static IDisposable SubscribeSafe( /// A disposable that cancels the subscription. /// A required argument is . [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] - public static IDisposable SubscribeSafe( + public static IDisposable SubscribeSafeErrors( IObservable source, Action onError, Action onCompleted, diff --git a/src/Primitives.Shared/SignalOperatorParityMixins.RxNames.cs b/src/Primitives.Shared/SignalOperatorParityMixins.RxNames.cs index 2c7e4b4c..aba40965 100644 --- a/src/Primitives.Shared/SignalOperatorParityMixins.RxNames.cs +++ b/src/Primitives.Shared/SignalOperatorParityMixins.RxNames.cs @@ -149,21 +149,30 @@ public IDisposable SubscribeSafe(Action onNext, Action onError) => public IDisposable SubscribeSafe(Action onNext, Action onError, Action onCompleted) => SubscribeSafeCore(source, Witness.Create(onNext, onError, onCompleted)); - /// Subscribes terminal callbacks with downstream exception protection. + /// Subscribes a value callback with downstream exception protection. + /// The action to invoke for each value. + /// A disposable that cancels the subscription. + /// A required argument is . + /// With no error handler, a source error is rethrown to the caller of the source's OnError. + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public IDisposable SubscribeSafe(Action onNext) => + SubscribeSafeCore(source, Witness.Create(onNext)); + + /// Subscribes error callbacks with downstream exception protection. /// The action to invoke for an error. /// A disposable that cancels the subscription. /// A required argument is . [MethodImpl(MethodImplOptions.AggressiveInlining)] - public IDisposable SubscribeSafe(Action onError) => + public IDisposable SubscribeSafeErrors(Action onError) => SubscribeSafeCore(source, Witness.Create(static _ => { }, onError)); - /// Subscribes terminal callbacks with downstream exception protection. + /// Subscribes error and completion callbacks with downstream exception protection. /// The action to invoke for an error. /// The action to invoke when the sequence completes. /// A disposable that cancels the subscription. /// A required argument is . [MethodImpl(MethodImplOptions.AggressiveInlining)] - public IDisposable SubscribeSafe(Action onError, Action onCompleted) => + public IDisposable SubscribeSafeErrors(Action onError, Action onCompleted) => SubscribeSafeCore(source, Witness.Create(static _ => { }, onError, onCompleted)); /// Invokes an action for each value while preserving the sequence. diff --git a/src/ReactiveUI.Primitives.Reactive/PublicAPI/net10.0-android/PublicAPI.txt b/src/ReactiveUI.Primitives.Reactive/PublicAPI/net10.0-android/PublicAPI.txt index cf099b68..8bdb4eb0 100644 --- a/src/ReactiveUI.Primitives.Reactive/PublicAPI/net10.0-android/PublicAPI.txt +++ b/src/ReactiveUI.Primitives.Reactive/PublicAPI/net10.0-android/PublicAPI.txt @@ -391,26 +391,20 @@ namespace ReactiveUI.Primitives.Reactive [System.Runtime.CompilerServices.OverloadResolutionPriority(-2)] public static System.IObservable> CombineLatest(params System.IObservable[] sources) { } [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] - public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onError, params byte[] allowValueType) where T : struct { } + public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onNext, params byte[] allowValueType) where T : struct { } [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] public static System.IDisposable SubscribeSafe(System.IObservable source, System.IObserver observer, params byte[] allowValueType) where T : struct { } [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] - public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onError, params bool[] allowNullable) where T : struct { } + public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onNext, params bool[] allowNullable) where T : class { } [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] - public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onError, params bool[] allowNullable) where T : class { } + public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onNext, params bool[] allowNullable) where T : struct { } [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] public static System.IDisposable SubscribeSafe(System.IObservable source, System.IObserver observer, params bool[] allowNullable) where T : class { } [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] public static System.IDisposable SubscribeSafe(System.IObservable source, System.IObserver observer, params bool[] allowNullable) where T : struct { } [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] - public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onError, System.Action onCompleted, params byte[] allowValueType) where T : struct { } - [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onNext, System.Action onError, params byte[] allowValueType) where T : struct { } [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] - public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onError, System.Action onCompleted, params bool[] allowNullable) where T : class { } - [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] - public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onError, System.Action onCompleted, params bool[] allowNullable) where T : struct { } - [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onNext, System.Action onError, params bool[] allowNullable) where T : class { } [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onNext, System.Action onError, params bool[] allowNullable) where T : struct { } @@ -420,6 +414,18 @@ namespace ReactiveUI.Primitives.Reactive public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onNext, System.Action onError, System.Action onCompleted, params bool[] allowNullable) where T : class { } [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onNext, System.Action onError, System.Action onCompleted, params bool[] allowNullable) where T : struct { } + [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] + public static System.IDisposable SubscribeSafeErrors(System.IObservable source, System.Action onError, params byte[] allowValueType) where T : struct { } + [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] + public static System.IDisposable SubscribeSafeErrors(System.IObservable source, System.Action onError, params bool[] allowNullable) where T : class { } + [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] + public static System.IDisposable SubscribeSafeErrors(System.IObservable source, System.Action onError, params bool[] allowNullable) where T : struct { } + [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] + public static System.IDisposable SubscribeSafeErrors(System.IObservable source, System.Action onError, System.Action onCompleted, params byte[] allowValueType) where T : struct { } + [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] + public static System.IDisposable SubscribeSafeErrors(System.IObservable source, System.Action onError, System.Action onCompleted, params bool[] allowNullable) where T : class { } + [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] + public static System.IDisposable SubscribeSafeErrors(System.IObservable source, System.Action onError, System.Action onCompleted, params bool[] allowNullable) where T : struct { } extension(System.IDisposable disposable) { public ReactiveUI.Primitives.Disposables.SingleDisposable DisposeWith() { } @@ -557,16 +563,18 @@ namespace ReactiveUI.Primitives.Reactive public System.IObservable StartWith(System.Collections.Generic.IEnumerable values) { } public System.IObservable StartWith(params T[] values) { } [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] - public System.IDisposable SubscribeSafe(System.Action onError) { } + public System.IDisposable SubscribeSafe(System.Action onNext) { } [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] public System.IDisposable SubscribeSafe(System.IObserver observer) { } [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] - public System.IDisposable SubscribeSafe(System.Action onError, System.Action onCompleted) { } - [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] public System.IDisposable SubscribeSafe(System.Action onNext, System.Action onError) { } [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] public System.IDisposable SubscribeSafe(System.Action onNext, System.Action onError, System.Action onCompleted) { } [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] + public System.IDisposable SubscribeSafeErrors(System.Action onError) { } + [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] + public System.IDisposable SubscribeSafeErrors(System.Action onError, System.Action onCompleted) { } + [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] public System.IDisposable SubscribeSafePrimitives(System.IObserver observer) { } public System.IObservable Synchronize() { } public System.IObservable Synchronize(System.Threading.Lock gate) { } diff --git a/src/ReactiveUI.Primitives.Reactive/PublicAPI/net10.0-ios/PublicAPI.txt b/src/ReactiveUI.Primitives.Reactive/PublicAPI/net10.0-ios/PublicAPI.txt index e25cfba3..80308faf 100644 --- a/src/ReactiveUI.Primitives.Reactive/PublicAPI/net10.0-ios/PublicAPI.txt +++ b/src/ReactiveUI.Primitives.Reactive/PublicAPI/net10.0-ios/PublicAPI.txt @@ -391,26 +391,20 @@ namespace ReactiveUI.Primitives.Reactive [System.Runtime.CompilerServices.OverloadResolutionPriority(-2)] public static System.IObservable> CombineLatest(params System.IObservable[] sources) { } [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] - public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onError, params byte[] allowValueType) where T : struct { } + public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onNext, params byte[] allowValueType) where T : struct { } [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] public static System.IDisposable SubscribeSafe(System.IObservable source, System.IObserver observer, params byte[] allowValueType) where T : struct { } [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] - public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onError, params bool[] allowNullable) where T : struct { } + public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onNext, params bool[] allowNullable) where T : class { } [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] - public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onError, params bool[] allowNullable) where T : class { } + public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onNext, params bool[] allowNullable) where T : struct { } [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] public static System.IDisposable SubscribeSafe(System.IObservable source, System.IObserver observer, params bool[] allowNullable) where T : class { } [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] public static System.IDisposable SubscribeSafe(System.IObservable source, System.IObserver observer, params bool[] allowNullable) where T : struct { } [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] - public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onError, System.Action onCompleted, params byte[] allowValueType) where T : struct { } - [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onNext, System.Action onError, params byte[] allowValueType) where T : struct { } [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] - public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onError, System.Action onCompleted, params bool[] allowNullable) where T : class { } - [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] - public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onError, System.Action onCompleted, params bool[] allowNullable) where T : struct { } - [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onNext, System.Action onError, params bool[] allowNullable) where T : class { } [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onNext, System.Action onError, params bool[] allowNullable) where T : struct { } @@ -420,6 +414,18 @@ namespace ReactiveUI.Primitives.Reactive public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onNext, System.Action onError, System.Action onCompleted, params bool[] allowNullable) where T : class { } [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onNext, System.Action onError, System.Action onCompleted, params bool[] allowNullable) where T : struct { } + [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] + public static System.IDisposable SubscribeSafeErrors(System.IObservable source, System.Action onError, params byte[] allowValueType) where T : struct { } + [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] + public static System.IDisposable SubscribeSafeErrors(System.IObservable source, System.Action onError, params bool[] allowNullable) where T : class { } + [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] + public static System.IDisposable SubscribeSafeErrors(System.IObservable source, System.Action onError, params bool[] allowNullable) where T : struct { } + [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] + public static System.IDisposable SubscribeSafeErrors(System.IObservable source, System.Action onError, System.Action onCompleted, params byte[] allowValueType) where T : struct { } + [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] + public static System.IDisposable SubscribeSafeErrors(System.IObservable source, System.Action onError, System.Action onCompleted, params bool[] allowNullable) where T : class { } + [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] + public static System.IDisposable SubscribeSafeErrors(System.IObservable source, System.Action onError, System.Action onCompleted, params bool[] allowNullable) where T : struct { } extension(System.IDisposable disposable) { public ReactiveUI.Primitives.Disposables.SingleDisposable DisposeWith() { } @@ -557,16 +563,18 @@ namespace ReactiveUI.Primitives.Reactive public System.IObservable StartWith(System.Collections.Generic.IEnumerable values) { } public System.IObservable StartWith(params T[] values) { } [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] - public System.IDisposable SubscribeSafe(System.Action onError) { } + public System.IDisposable SubscribeSafe(System.Action onNext) { } [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] public System.IDisposable SubscribeSafe(System.IObserver observer) { } [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] - public System.IDisposable SubscribeSafe(System.Action onError, System.Action onCompleted) { } - [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] public System.IDisposable SubscribeSafe(System.Action onNext, System.Action onError) { } [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] public System.IDisposable SubscribeSafe(System.Action onNext, System.Action onError, System.Action onCompleted) { } [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] + public System.IDisposable SubscribeSafeErrors(System.Action onError) { } + [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] + public System.IDisposable SubscribeSafeErrors(System.Action onError, System.Action onCompleted) { } + [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] public System.IDisposable SubscribeSafePrimitives(System.IObserver observer) { } public System.IObservable Synchronize() { } public System.IObservable Synchronize(System.Threading.Lock gate) { } diff --git a/src/ReactiveUI.Primitives.Reactive/PublicAPI/net10.0-maccatalyst/PublicAPI.txt b/src/ReactiveUI.Primitives.Reactive/PublicAPI/net10.0-maccatalyst/PublicAPI.txt index 514585f5..3b9d0c9d 100644 --- a/src/ReactiveUI.Primitives.Reactive/PublicAPI/net10.0-maccatalyst/PublicAPI.txt +++ b/src/ReactiveUI.Primitives.Reactive/PublicAPI/net10.0-maccatalyst/PublicAPI.txt @@ -391,26 +391,20 @@ namespace ReactiveUI.Primitives.Reactive [System.Runtime.CompilerServices.OverloadResolutionPriority(-2)] public static System.IObservable> CombineLatest(params System.IObservable[] sources) { } [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] - public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onError, params byte[] allowValueType) where T : struct { } + public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onNext, params byte[] allowValueType) where T : struct { } [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] public static System.IDisposable SubscribeSafe(System.IObservable source, System.IObserver observer, params byte[] allowValueType) where T : struct { } [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] - public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onError, params bool[] allowNullable) where T : struct { } + public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onNext, params bool[] allowNullable) where T : class { } [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] - public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onError, params bool[] allowNullable) where T : class { } + public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onNext, params bool[] allowNullable) where T : struct { } [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] public static System.IDisposable SubscribeSafe(System.IObservable source, System.IObserver observer, params bool[] allowNullable) where T : class { } [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] public static System.IDisposable SubscribeSafe(System.IObservable source, System.IObserver observer, params bool[] allowNullable) where T : struct { } [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] - public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onError, System.Action onCompleted, params byte[] allowValueType) where T : struct { } - [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onNext, System.Action onError, params byte[] allowValueType) where T : struct { } [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] - public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onError, System.Action onCompleted, params bool[] allowNullable) where T : class { } - [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] - public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onError, System.Action onCompleted, params bool[] allowNullable) where T : struct { } - [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onNext, System.Action onError, params bool[] allowNullable) where T : class { } [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onNext, System.Action onError, params bool[] allowNullable) where T : struct { } @@ -420,6 +414,18 @@ namespace ReactiveUI.Primitives.Reactive public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onNext, System.Action onError, System.Action onCompleted, params bool[] allowNullable) where T : class { } [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onNext, System.Action onError, System.Action onCompleted, params bool[] allowNullable) where T : struct { } + [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] + public static System.IDisposable SubscribeSafeErrors(System.IObservable source, System.Action onError, params byte[] allowValueType) where T : struct { } + [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] + public static System.IDisposable SubscribeSafeErrors(System.IObservable source, System.Action onError, params bool[] allowNullable) where T : class { } + [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] + public static System.IDisposable SubscribeSafeErrors(System.IObservable source, System.Action onError, params bool[] allowNullable) where T : struct { } + [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] + public static System.IDisposable SubscribeSafeErrors(System.IObservable source, System.Action onError, System.Action onCompleted, params byte[] allowValueType) where T : struct { } + [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] + public static System.IDisposable SubscribeSafeErrors(System.IObservable source, System.Action onError, System.Action onCompleted, params bool[] allowNullable) where T : class { } + [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] + public static System.IDisposable SubscribeSafeErrors(System.IObservable source, System.Action onError, System.Action onCompleted, params bool[] allowNullable) where T : struct { } extension(System.IDisposable disposable) { public ReactiveUI.Primitives.Disposables.SingleDisposable DisposeWith() { } @@ -557,16 +563,18 @@ namespace ReactiveUI.Primitives.Reactive public System.IObservable StartWith(System.Collections.Generic.IEnumerable values) { } public System.IObservable StartWith(params T[] values) { } [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] - public System.IDisposable SubscribeSafe(System.Action onError) { } + public System.IDisposable SubscribeSafe(System.Action onNext) { } [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] public System.IDisposable SubscribeSafe(System.IObserver observer) { } [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] - public System.IDisposable SubscribeSafe(System.Action onError, System.Action onCompleted) { } - [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] public System.IDisposable SubscribeSafe(System.Action onNext, System.Action onError) { } [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] public System.IDisposable SubscribeSafe(System.Action onNext, System.Action onError, System.Action onCompleted) { } [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] + public System.IDisposable SubscribeSafeErrors(System.Action onError) { } + [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] + public System.IDisposable SubscribeSafeErrors(System.Action onError, System.Action onCompleted) { } + [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] public System.IDisposable SubscribeSafePrimitives(System.IObserver observer) { } public System.IObservable Synchronize() { } public System.IObservable Synchronize(System.Threading.Lock gate) { } diff --git a/src/ReactiveUI.Primitives.Reactive/PublicAPI/net10.0-macos/PublicAPI.txt b/src/ReactiveUI.Primitives.Reactive/PublicAPI/net10.0-macos/PublicAPI.txt index f8b83c9d..1aaaaa07 100644 --- a/src/ReactiveUI.Primitives.Reactive/PublicAPI/net10.0-macos/PublicAPI.txt +++ b/src/ReactiveUI.Primitives.Reactive/PublicAPI/net10.0-macos/PublicAPI.txt @@ -391,26 +391,20 @@ namespace ReactiveUI.Primitives.Reactive [System.Runtime.CompilerServices.OverloadResolutionPriority(-2)] public static System.IObservable> CombineLatest(params System.IObservable[] sources) { } [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] - public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onError, params byte[] allowValueType) where T : struct { } + public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onNext, params byte[] allowValueType) where T : struct { } [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] public static System.IDisposable SubscribeSafe(System.IObservable source, System.IObserver observer, params byte[] allowValueType) where T : struct { } [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] - public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onError, params bool[] allowNullable) where T : struct { } + public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onNext, params bool[] allowNullable) where T : class { } [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] - public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onError, params bool[] allowNullable) where T : class { } + public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onNext, params bool[] allowNullable) where T : struct { } [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] public static System.IDisposable SubscribeSafe(System.IObservable source, System.IObserver observer, params bool[] allowNullable) where T : class { } [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] public static System.IDisposable SubscribeSafe(System.IObservable source, System.IObserver observer, params bool[] allowNullable) where T : struct { } [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] - public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onError, System.Action onCompleted, params byte[] allowValueType) where T : struct { } - [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onNext, System.Action onError, params byte[] allowValueType) where T : struct { } [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] - public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onError, System.Action onCompleted, params bool[] allowNullable) where T : class { } - [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] - public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onError, System.Action onCompleted, params bool[] allowNullable) where T : struct { } - [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onNext, System.Action onError, params bool[] allowNullable) where T : class { } [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onNext, System.Action onError, params bool[] allowNullable) where T : struct { } @@ -420,6 +414,18 @@ namespace ReactiveUI.Primitives.Reactive public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onNext, System.Action onError, System.Action onCompleted, params bool[] allowNullable) where T : class { } [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onNext, System.Action onError, System.Action onCompleted, params bool[] allowNullable) where T : struct { } + [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] + public static System.IDisposable SubscribeSafeErrors(System.IObservable source, System.Action onError, params byte[] allowValueType) where T : struct { } + [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] + public static System.IDisposable SubscribeSafeErrors(System.IObservable source, System.Action onError, params bool[] allowNullable) where T : class { } + [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] + public static System.IDisposable SubscribeSafeErrors(System.IObservable source, System.Action onError, params bool[] allowNullable) where T : struct { } + [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] + public static System.IDisposable SubscribeSafeErrors(System.IObservable source, System.Action onError, System.Action onCompleted, params byte[] allowValueType) where T : struct { } + [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] + public static System.IDisposable SubscribeSafeErrors(System.IObservable source, System.Action onError, System.Action onCompleted, params bool[] allowNullable) where T : class { } + [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] + public static System.IDisposable SubscribeSafeErrors(System.IObservable source, System.Action onError, System.Action onCompleted, params bool[] allowNullable) where T : struct { } extension(System.IDisposable disposable) { public ReactiveUI.Primitives.Disposables.SingleDisposable DisposeWith() { } @@ -557,16 +563,18 @@ namespace ReactiveUI.Primitives.Reactive public System.IObservable StartWith(System.Collections.Generic.IEnumerable values) { } public System.IObservable StartWith(params T[] values) { } [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] - public System.IDisposable SubscribeSafe(System.Action onError) { } + public System.IDisposable SubscribeSafe(System.Action onNext) { } [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] public System.IDisposable SubscribeSafe(System.IObserver observer) { } [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] - public System.IDisposable SubscribeSafe(System.Action onError, System.Action onCompleted) { } - [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] public System.IDisposable SubscribeSafe(System.Action onNext, System.Action onError) { } [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] public System.IDisposable SubscribeSafe(System.Action onNext, System.Action onError, System.Action onCompleted) { } [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] + public System.IDisposable SubscribeSafeErrors(System.Action onError) { } + [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] + public System.IDisposable SubscribeSafeErrors(System.Action onError, System.Action onCompleted) { } + [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] public System.IDisposable SubscribeSafePrimitives(System.IObserver observer) { } public System.IObservable Synchronize() { } public System.IObservable Synchronize(System.Threading.Lock gate) { } diff --git a/src/ReactiveUI.Primitives.Reactive/PublicAPI/net10.0-tvos/PublicAPI.txt b/src/ReactiveUI.Primitives.Reactive/PublicAPI/net10.0-tvos/PublicAPI.txt index 1e1ca942..cb2b254e 100644 --- a/src/ReactiveUI.Primitives.Reactive/PublicAPI/net10.0-tvos/PublicAPI.txt +++ b/src/ReactiveUI.Primitives.Reactive/PublicAPI/net10.0-tvos/PublicAPI.txt @@ -391,26 +391,20 @@ namespace ReactiveUI.Primitives.Reactive [System.Runtime.CompilerServices.OverloadResolutionPriority(-2)] public static System.IObservable> CombineLatest(params System.IObservable[] sources) { } [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] - public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onError, params byte[] allowValueType) where T : struct { } + public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onNext, params byte[] allowValueType) where T : struct { } [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] public static System.IDisposable SubscribeSafe(System.IObservable source, System.IObserver observer, params byte[] allowValueType) where T : struct { } [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] - public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onError, params bool[] allowNullable) where T : struct { } + public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onNext, params bool[] allowNullable) where T : class { } [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] - public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onError, params bool[] allowNullable) where T : class { } + public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onNext, params bool[] allowNullable) where T : struct { } [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] public static System.IDisposable SubscribeSafe(System.IObservable source, System.IObserver observer, params bool[] allowNullable) where T : class { } [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] public static System.IDisposable SubscribeSafe(System.IObservable source, System.IObserver observer, params bool[] allowNullable) where T : struct { } [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] - public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onError, System.Action onCompleted, params byte[] allowValueType) where T : struct { } - [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onNext, System.Action onError, params byte[] allowValueType) where T : struct { } [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] - public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onError, System.Action onCompleted, params bool[] allowNullable) where T : class { } - [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] - public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onError, System.Action onCompleted, params bool[] allowNullable) where T : struct { } - [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onNext, System.Action onError, params bool[] allowNullable) where T : class { } [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onNext, System.Action onError, params bool[] allowNullable) where T : struct { } @@ -420,6 +414,18 @@ namespace ReactiveUI.Primitives.Reactive public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onNext, System.Action onError, System.Action onCompleted, params bool[] allowNullable) where T : class { } [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onNext, System.Action onError, System.Action onCompleted, params bool[] allowNullable) where T : struct { } + [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] + public static System.IDisposable SubscribeSafeErrors(System.IObservable source, System.Action onError, params byte[] allowValueType) where T : struct { } + [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] + public static System.IDisposable SubscribeSafeErrors(System.IObservable source, System.Action onError, params bool[] allowNullable) where T : class { } + [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] + public static System.IDisposable SubscribeSafeErrors(System.IObservable source, System.Action onError, params bool[] allowNullable) where T : struct { } + [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] + public static System.IDisposable SubscribeSafeErrors(System.IObservable source, System.Action onError, System.Action onCompleted, params byte[] allowValueType) where T : struct { } + [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] + public static System.IDisposable SubscribeSafeErrors(System.IObservable source, System.Action onError, System.Action onCompleted, params bool[] allowNullable) where T : class { } + [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] + public static System.IDisposable SubscribeSafeErrors(System.IObservable source, System.Action onError, System.Action onCompleted, params bool[] allowNullable) where T : struct { } extension(System.IDisposable disposable) { public ReactiveUI.Primitives.Disposables.SingleDisposable DisposeWith() { } @@ -557,16 +563,18 @@ namespace ReactiveUI.Primitives.Reactive public System.IObservable StartWith(System.Collections.Generic.IEnumerable values) { } public System.IObservable StartWith(params T[] values) { } [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] - public System.IDisposable SubscribeSafe(System.Action onError) { } + public System.IDisposable SubscribeSafe(System.Action onNext) { } [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] public System.IDisposable SubscribeSafe(System.IObserver observer) { } [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] - public System.IDisposable SubscribeSafe(System.Action onError, System.Action onCompleted) { } - [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] public System.IDisposable SubscribeSafe(System.Action onNext, System.Action onError) { } [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] public System.IDisposable SubscribeSafe(System.Action onNext, System.Action onError, System.Action onCompleted) { } [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] + public System.IDisposable SubscribeSafeErrors(System.Action onError) { } + [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] + public System.IDisposable SubscribeSafeErrors(System.Action onError, System.Action onCompleted) { } + [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] public System.IDisposable SubscribeSafePrimitives(System.IObserver observer) { } public System.IObservable Synchronize() { } public System.IObservable Synchronize(System.Threading.Lock gate) { } diff --git a/src/ReactiveUI.Primitives.Reactive/PublicAPI/net10.0/PublicAPI.txt b/src/ReactiveUI.Primitives.Reactive/PublicAPI/net10.0/PublicAPI.txt index 978f733b..d16ee3fb 100644 --- a/src/ReactiveUI.Primitives.Reactive/PublicAPI/net10.0/PublicAPI.txt +++ b/src/ReactiveUI.Primitives.Reactive/PublicAPI/net10.0/PublicAPI.txt @@ -390,26 +390,20 @@ namespace ReactiveUI.Primitives.Reactive [System.Runtime.CompilerServices.OverloadResolutionPriority(-2)] public static System.IObservable> CombineLatest(params System.IObservable[] sources) { } [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] - public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onError, params byte[] allowValueType) where T : struct { } + public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onNext, params byte[] allowValueType) where T : struct { } [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] public static System.IDisposable SubscribeSafe(System.IObservable source, System.IObserver observer, params byte[] allowValueType) where T : struct { } [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] - public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onError, params bool[] allowNullable) where T : struct { } + public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onNext, params bool[] allowNullable) where T : class { } [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] - public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onError, params bool[] allowNullable) where T : class { } + public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onNext, params bool[] allowNullable) where T : struct { } [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] public static System.IDisposable SubscribeSafe(System.IObservable source, System.IObserver observer, params bool[] allowNullable) where T : class { } [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] public static System.IDisposable SubscribeSafe(System.IObservable source, System.IObserver observer, params bool[] allowNullable) where T : struct { } [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] - public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onError, System.Action onCompleted, params byte[] allowValueType) where T : struct { } - [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onNext, System.Action onError, params byte[] allowValueType) where T : struct { } [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] - public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onError, System.Action onCompleted, params bool[] allowNullable) where T : class { } - [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] - public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onError, System.Action onCompleted, params bool[] allowNullable) where T : struct { } - [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onNext, System.Action onError, params bool[] allowNullable) where T : class { } [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onNext, System.Action onError, params bool[] allowNullable) where T : struct { } @@ -419,6 +413,18 @@ namespace ReactiveUI.Primitives.Reactive public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onNext, System.Action onError, System.Action onCompleted, params bool[] allowNullable) where T : class { } [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onNext, System.Action onError, System.Action onCompleted, params bool[] allowNullable) where T : struct { } + [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] + public static System.IDisposable SubscribeSafeErrors(System.IObservable source, System.Action onError, params byte[] allowValueType) where T : struct { } + [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] + public static System.IDisposable SubscribeSafeErrors(System.IObservable source, System.Action onError, params bool[] allowNullable) where T : class { } + [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] + public static System.IDisposable SubscribeSafeErrors(System.IObservable source, System.Action onError, params bool[] allowNullable) where T : struct { } + [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] + public static System.IDisposable SubscribeSafeErrors(System.IObservable source, System.Action onError, System.Action onCompleted, params byte[] allowValueType) where T : struct { } + [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] + public static System.IDisposable SubscribeSafeErrors(System.IObservable source, System.Action onError, System.Action onCompleted, params bool[] allowNullable) where T : class { } + [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] + public static System.IDisposable SubscribeSafeErrors(System.IObservable source, System.Action onError, System.Action onCompleted, params bool[] allowNullable) where T : struct { } extension(System.IDisposable disposable) { public ReactiveUI.Primitives.Disposables.SingleDisposable DisposeWith() { } @@ -556,16 +562,18 @@ namespace ReactiveUI.Primitives.Reactive public System.IObservable StartWith(System.Collections.Generic.IEnumerable values) { } public System.IObservable StartWith(params T[] values) { } [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] - public System.IDisposable SubscribeSafe(System.Action onError) { } + public System.IDisposable SubscribeSafe(System.Action onNext) { } [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] public System.IDisposable SubscribeSafe(System.IObserver observer) { } [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] - public System.IDisposable SubscribeSafe(System.Action onError, System.Action onCompleted) { } - [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] public System.IDisposable SubscribeSafe(System.Action onNext, System.Action onError) { } [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] public System.IDisposable SubscribeSafe(System.Action onNext, System.Action onError, System.Action onCompleted) { } [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] + public System.IDisposable SubscribeSafeErrors(System.Action onError) { } + [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] + public System.IDisposable SubscribeSafeErrors(System.Action onError, System.Action onCompleted) { } + [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] public System.IDisposable SubscribeSafePrimitives(System.IObserver observer) { } public System.IObservable Synchronize() { } public System.IObservable Synchronize(System.Threading.Lock gate) { } diff --git a/src/ReactiveUI.Primitives.Reactive/PublicAPI/net11.0-android/PublicAPI.txt b/src/ReactiveUI.Primitives.Reactive/PublicAPI/net11.0-android/PublicAPI.txt index cf099b68..8bdb4eb0 100644 --- a/src/ReactiveUI.Primitives.Reactive/PublicAPI/net11.0-android/PublicAPI.txt +++ b/src/ReactiveUI.Primitives.Reactive/PublicAPI/net11.0-android/PublicAPI.txt @@ -391,26 +391,20 @@ namespace ReactiveUI.Primitives.Reactive [System.Runtime.CompilerServices.OverloadResolutionPriority(-2)] public static System.IObservable> CombineLatest(params System.IObservable[] sources) { } [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] - public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onError, params byte[] allowValueType) where T : struct { } + public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onNext, params byte[] allowValueType) where T : struct { } [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] public static System.IDisposable SubscribeSafe(System.IObservable source, System.IObserver observer, params byte[] allowValueType) where T : struct { } [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] - public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onError, params bool[] allowNullable) where T : struct { } + public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onNext, params bool[] allowNullable) where T : class { } [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] - public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onError, params bool[] allowNullable) where T : class { } + public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onNext, params bool[] allowNullable) where T : struct { } [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] public static System.IDisposable SubscribeSafe(System.IObservable source, System.IObserver observer, params bool[] allowNullable) where T : class { } [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] public static System.IDisposable SubscribeSafe(System.IObservable source, System.IObserver observer, params bool[] allowNullable) where T : struct { } [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] - public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onError, System.Action onCompleted, params byte[] allowValueType) where T : struct { } - [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onNext, System.Action onError, params byte[] allowValueType) where T : struct { } [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] - public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onError, System.Action onCompleted, params bool[] allowNullable) where T : class { } - [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] - public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onError, System.Action onCompleted, params bool[] allowNullable) where T : struct { } - [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onNext, System.Action onError, params bool[] allowNullable) where T : class { } [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onNext, System.Action onError, params bool[] allowNullable) where T : struct { } @@ -420,6 +414,18 @@ namespace ReactiveUI.Primitives.Reactive public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onNext, System.Action onError, System.Action onCompleted, params bool[] allowNullable) where T : class { } [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onNext, System.Action onError, System.Action onCompleted, params bool[] allowNullable) where T : struct { } + [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] + public static System.IDisposable SubscribeSafeErrors(System.IObservable source, System.Action onError, params byte[] allowValueType) where T : struct { } + [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] + public static System.IDisposable SubscribeSafeErrors(System.IObservable source, System.Action onError, params bool[] allowNullable) where T : class { } + [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] + public static System.IDisposable SubscribeSafeErrors(System.IObservable source, System.Action onError, params bool[] allowNullable) where T : struct { } + [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] + public static System.IDisposable SubscribeSafeErrors(System.IObservable source, System.Action onError, System.Action onCompleted, params byte[] allowValueType) where T : struct { } + [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] + public static System.IDisposable SubscribeSafeErrors(System.IObservable source, System.Action onError, System.Action onCompleted, params bool[] allowNullable) where T : class { } + [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] + public static System.IDisposable SubscribeSafeErrors(System.IObservable source, System.Action onError, System.Action onCompleted, params bool[] allowNullable) where T : struct { } extension(System.IDisposable disposable) { public ReactiveUI.Primitives.Disposables.SingleDisposable DisposeWith() { } @@ -557,16 +563,18 @@ namespace ReactiveUI.Primitives.Reactive public System.IObservable StartWith(System.Collections.Generic.IEnumerable values) { } public System.IObservable StartWith(params T[] values) { } [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] - public System.IDisposable SubscribeSafe(System.Action onError) { } + public System.IDisposable SubscribeSafe(System.Action onNext) { } [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] public System.IDisposable SubscribeSafe(System.IObserver observer) { } [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] - public System.IDisposable SubscribeSafe(System.Action onError, System.Action onCompleted) { } - [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] public System.IDisposable SubscribeSafe(System.Action onNext, System.Action onError) { } [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] public System.IDisposable SubscribeSafe(System.Action onNext, System.Action onError, System.Action onCompleted) { } [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] + public System.IDisposable SubscribeSafeErrors(System.Action onError) { } + [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] + public System.IDisposable SubscribeSafeErrors(System.Action onError, System.Action onCompleted) { } + [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] public System.IDisposable SubscribeSafePrimitives(System.IObserver observer) { } public System.IObservable Synchronize() { } public System.IObservable Synchronize(System.Threading.Lock gate) { } diff --git a/src/ReactiveUI.Primitives.Reactive/PublicAPI/net11.0-ios/PublicAPI.txt b/src/ReactiveUI.Primitives.Reactive/PublicAPI/net11.0-ios/PublicAPI.txt index e25cfba3..80308faf 100644 --- a/src/ReactiveUI.Primitives.Reactive/PublicAPI/net11.0-ios/PublicAPI.txt +++ b/src/ReactiveUI.Primitives.Reactive/PublicAPI/net11.0-ios/PublicAPI.txt @@ -391,26 +391,20 @@ namespace ReactiveUI.Primitives.Reactive [System.Runtime.CompilerServices.OverloadResolutionPriority(-2)] public static System.IObservable> CombineLatest(params System.IObservable[] sources) { } [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] - public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onError, params byte[] allowValueType) where T : struct { } + public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onNext, params byte[] allowValueType) where T : struct { } [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] public static System.IDisposable SubscribeSafe(System.IObservable source, System.IObserver observer, params byte[] allowValueType) where T : struct { } [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] - public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onError, params bool[] allowNullable) where T : struct { } + public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onNext, params bool[] allowNullable) where T : class { } [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] - public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onError, params bool[] allowNullable) where T : class { } + public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onNext, params bool[] allowNullable) where T : struct { } [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] public static System.IDisposable SubscribeSafe(System.IObservable source, System.IObserver observer, params bool[] allowNullable) where T : class { } [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] public static System.IDisposable SubscribeSafe(System.IObservable source, System.IObserver observer, params bool[] allowNullable) where T : struct { } [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] - public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onError, System.Action onCompleted, params byte[] allowValueType) where T : struct { } - [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onNext, System.Action onError, params byte[] allowValueType) where T : struct { } [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] - public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onError, System.Action onCompleted, params bool[] allowNullable) where T : class { } - [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] - public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onError, System.Action onCompleted, params bool[] allowNullable) where T : struct { } - [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onNext, System.Action onError, params bool[] allowNullable) where T : class { } [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onNext, System.Action onError, params bool[] allowNullable) where T : struct { } @@ -420,6 +414,18 @@ namespace ReactiveUI.Primitives.Reactive public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onNext, System.Action onError, System.Action onCompleted, params bool[] allowNullable) where T : class { } [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onNext, System.Action onError, System.Action onCompleted, params bool[] allowNullable) where T : struct { } + [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] + public static System.IDisposable SubscribeSafeErrors(System.IObservable source, System.Action onError, params byte[] allowValueType) where T : struct { } + [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] + public static System.IDisposable SubscribeSafeErrors(System.IObservable source, System.Action onError, params bool[] allowNullable) where T : class { } + [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] + public static System.IDisposable SubscribeSafeErrors(System.IObservable source, System.Action onError, params bool[] allowNullable) where T : struct { } + [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] + public static System.IDisposable SubscribeSafeErrors(System.IObservable source, System.Action onError, System.Action onCompleted, params byte[] allowValueType) where T : struct { } + [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] + public static System.IDisposable SubscribeSafeErrors(System.IObservable source, System.Action onError, System.Action onCompleted, params bool[] allowNullable) where T : class { } + [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] + public static System.IDisposable SubscribeSafeErrors(System.IObservable source, System.Action onError, System.Action onCompleted, params bool[] allowNullable) where T : struct { } extension(System.IDisposable disposable) { public ReactiveUI.Primitives.Disposables.SingleDisposable DisposeWith() { } @@ -557,16 +563,18 @@ namespace ReactiveUI.Primitives.Reactive public System.IObservable StartWith(System.Collections.Generic.IEnumerable values) { } public System.IObservable StartWith(params T[] values) { } [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] - public System.IDisposable SubscribeSafe(System.Action onError) { } + public System.IDisposable SubscribeSafe(System.Action onNext) { } [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] public System.IDisposable SubscribeSafe(System.IObserver observer) { } [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] - public System.IDisposable SubscribeSafe(System.Action onError, System.Action onCompleted) { } - [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] public System.IDisposable SubscribeSafe(System.Action onNext, System.Action onError) { } [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] public System.IDisposable SubscribeSafe(System.Action onNext, System.Action onError, System.Action onCompleted) { } [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] + public System.IDisposable SubscribeSafeErrors(System.Action onError) { } + [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] + public System.IDisposable SubscribeSafeErrors(System.Action onError, System.Action onCompleted) { } + [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] public System.IDisposable SubscribeSafePrimitives(System.IObserver observer) { } public System.IObservable Synchronize() { } public System.IObservable Synchronize(System.Threading.Lock gate) { } diff --git a/src/ReactiveUI.Primitives.Reactive/PublicAPI/net11.0-maccatalyst/PublicAPI.txt b/src/ReactiveUI.Primitives.Reactive/PublicAPI/net11.0-maccatalyst/PublicAPI.txt index 514585f5..3b9d0c9d 100644 --- a/src/ReactiveUI.Primitives.Reactive/PublicAPI/net11.0-maccatalyst/PublicAPI.txt +++ b/src/ReactiveUI.Primitives.Reactive/PublicAPI/net11.0-maccatalyst/PublicAPI.txt @@ -391,26 +391,20 @@ namespace ReactiveUI.Primitives.Reactive [System.Runtime.CompilerServices.OverloadResolutionPriority(-2)] public static System.IObservable> CombineLatest(params System.IObservable[] sources) { } [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] - public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onError, params byte[] allowValueType) where T : struct { } + public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onNext, params byte[] allowValueType) where T : struct { } [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] public static System.IDisposable SubscribeSafe(System.IObservable source, System.IObserver observer, params byte[] allowValueType) where T : struct { } [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] - public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onError, params bool[] allowNullable) where T : struct { } + public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onNext, params bool[] allowNullable) where T : class { } [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] - public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onError, params bool[] allowNullable) where T : class { } + public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onNext, params bool[] allowNullable) where T : struct { } [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] public static System.IDisposable SubscribeSafe(System.IObservable source, System.IObserver observer, params bool[] allowNullable) where T : class { } [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] public static System.IDisposable SubscribeSafe(System.IObservable source, System.IObserver observer, params bool[] allowNullable) where T : struct { } [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] - public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onError, System.Action onCompleted, params byte[] allowValueType) where T : struct { } - [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onNext, System.Action onError, params byte[] allowValueType) where T : struct { } [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] - public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onError, System.Action onCompleted, params bool[] allowNullable) where T : class { } - [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] - public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onError, System.Action onCompleted, params bool[] allowNullable) where T : struct { } - [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onNext, System.Action onError, params bool[] allowNullable) where T : class { } [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onNext, System.Action onError, params bool[] allowNullable) where T : struct { } @@ -420,6 +414,18 @@ namespace ReactiveUI.Primitives.Reactive public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onNext, System.Action onError, System.Action onCompleted, params bool[] allowNullable) where T : class { } [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onNext, System.Action onError, System.Action onCompleted, params bool[] allowNullable) where T : struct { } + [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] + public static System.IDisposable SubscribeSafeErrors(System.IObservable source, System.Action onError, params byte[] allowValueType) where T : struct { } + [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] + public static System.IDisposable SubscribeSafeErrors(System.IObservable source, System.Action onError, params bool[] allowNullable) where T : class { } + [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] + public static System.IDisposable SubscribeSafeErrors(System.IObservable source, System.Action onError, params bool[] allowNullable) where T : struct { } + [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] + public static System.IDisposable SubscribeSafeErrors(System.IObservable source, System.Action onError, System.Action onCompleted, params byte[] allowValueType) where T : struct { } + [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] + public static System.IDisposable SubscribeSafeErrors(System.IObservable source, System.Action onError, System.Action onCompleted, params bool[] allowNullable) where T : class { } + [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] + public static System.IDisposable SubscribeSafeErrors(System.IObservable source, System.Action onError, System.Action onCompleted, params bool[] allowNullable) where T : struct { } extension(System.IDisposable disposable) { public ReactiveUI.Primitives.Disposables.SingleDisposable DisposeWith() { } @@ -557,16 +563,18 @@ namespace ReactiveUI.Primitives.Reactive public System.IObservable StartWith(System.Collections.Generic.IEnumerable values) { } public System.IObservable StartWith(params T[] values) { } [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] - public System.IDisposable SubscribeSafe(System.Action onError) { } + public System.IDisposable SubscribeSafe(System.Action onNext) { } [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] public System.IDisposable SubscribeSafe(System.IObserver observer) { } [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] - public System.IDisposable SubscribeSafe(System.Action onError, System.Action onCompleted) { } - [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] public System.IDisposable SubscribeSafe(System.Action onNext, System.Action onError) { } [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] public System.IDisposable SubscribeSafe(System.Action onNext, System.Action onError, System.Action onCompleted) { } [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] + public System.IDisposable SubscribeSafeErrors(System.Action onError) { } + [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] + public System.IDisposable SubscribeSafeErrors(System.Action onError, System.Action onCompleted) { } + [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] public System.IDisposable SubscribeSafePrimitives(System.IObserver observer) { } public System.IObservable Synchronize() { } public System.IObservable Synchronize(System.Threading.Lock gate) { } diff --git a/src/ReactiveUI.Primitives.Reactive/PublicAPI/net11.0-macos/PublicAPI.txt b/src/ReactiveUI.Primitives.Reactive/PublicAPI/net11.0-macos/PublicAPI.txt index f8b83c9d..1aaaaa07 100644 --- a/src/ReactiveUI.Primitives.Reactive/PublicAPI/net11.0-macos/PublicAPI.txt +++ b/src/ReactiveUI.Primitives.Reactive/PublicAPI/net11.0-macos/PublicAPI.txt @@ -391,26 +391,20 @@ namespace ReactiveUI.Primitives.Reactive [System.Runtime.CompilerServices.OverloadResolutionPriority(-2)] public static System.IObservable> CombineLatest(params System.IObservable[] sources) { } [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] - public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onError, params byte[] allowValueType) where T : struct { } + public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onNext, params byte[] allowValueType) where T : struct { } [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] public static System.IDisposable SubscribeSafe(System.IObservable source, System.IObserver observer, params byte[] allowValueType) where T : struct { } [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] - public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onError, params bool[] allowNullable) where T : struct { } + public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onNext, params bool[] allowNullable) where T : class { } [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] - public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onError, params bool[] allowNullable) where T : class { } + public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onNext, params bool[] allowNullable) where T : struct { } [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] public static System.IDisposable SubscribeSafe(System.IObservable source, System.IObserver observer, params bool[] allowNullable) where T : class { } [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] public static System.IDisposable SubscribeSafe(System.IObservable source, System.IObserver observer, params bool[] allowNullable) where T : struct { } [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] - public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onError, System.Action onCompleted, params byte[] allowValueType) where T : struct { } - [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onNext, System.Action onError, params byte[] allowValueType) where T : struct { } [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] - public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onError, System.Action onCompleted, params bool[] allowNullable) where T : class { } - [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] - public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onError, System.Action onCompleted, params bool[] allowNullable) where T : struct { } - [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onNext, System.Action onError, params bool[] allowNullable) where T : class { } [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onNext, System.Action onError, params bool[] allowNullable) where T : struct { } @@ -420,6 +414,18 @@ namespace ReactiveUI.Primitives.Reactive public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onNext, System.Action onError, System.Action onCompleted, params bool[] allowNullable) where T : class { } [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onNext, System.Action onError, System.Action onCompleted, params bool[] allowNullable) where T : struct { } + [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] + public static System.IDisposable SubscribeSafeErrors(System.IObservable source, System.Action onError, params byte[] allowValueType) where T : struct { } + [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] + public static System.IDisposable SubscribeSafeErrors(System.IObservable source, System.Action onError, params bool[] allowNullable) where T : class { } + [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] + public static System.IDisposable SubscribeSafeErrors(System.IObservable source, System.Action onError, params bool[] allowNullable) where T : struct { } + [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] + public static System.IDisposable SubscribeSafeErrors(System.IObservable source, System.Action onError, System.Action onCompleted, params byte[] allowValueType) where T : struct { } + [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] + public static System.IDisposable SubscribeSafeErrors(System.IObservable source, System.Action onError, System.Action onCompleted, params bool[] allowNullable) where T : class { } + [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] + public static System.IDisposable SubscribeSafeErrors(System.IObservable source, System.Action onError, System.Action onCompleted, params bool[] allowNullable) where T : struct { } extension(System.IDisposable disposable) { public ReactiveUI.Primitives.Disposables.SingleDisposable DisposeWith() { } @@ -557,16 +563,18 @@ namespace ReactiveUI.Primitives.Reactive public System.IObservable StartWith(System.Collections.Generic.IEnumerable values) { } public System.IObservable StartWith(params T[] values) { } [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] - public System.IDisposable SubscribeSafe(System.Action onError) { } + public System.IDisposable SubscribeSafe(System.Action onNext) { } [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] public System.IDisposable SubscribeSafe(System.IObserver observer) { } [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] - public System.IDisposable SubscribeSafe(System.Action onError, System.Action onCompleted) { } - [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] public System.IDisposable SubscribeSafe(System.Action onNext, System.Action onError) { } [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] public System.IDisposable SubscribeSafe(System.Action onNext, System.Action onError, System.Action onCompleted) { } [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] + public System.IDisposable SubscribeSafeErrors(System.Action onError) { } + [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] + public System.IDisposable SubscribeSafeErrors(System.Action onError, System.Action onCompleted) { } + [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] public System.IDisposable SubscribeSafePrimitives(System.IObserver observer) { } public System.IObservable Synchronize() { } public System.IObservable Synchronize(System.Threading.Lock gate) { } diff --git a/src/ReactiveUI.Primitives.Reactive/PublicAPI/net11.0-tvos/PublicAPI.txt b/src/ReactiveUI.Primitives.Reactive/PublicAPI/net11.0-tvos/PublicAPI.txt index 1e1ca942..cb2b254e 100644 --- a/src/ReactiveUI.Primitives.Reactive/PublicAPI/net11.0-tvos/PublicAPI.txt +++ b/src/ReactiveUI.Primitives.Reactive/PublicAPI/net11.0-tvos/PublicAPI.txt @@ -391,26 +391,20 @@ namespace ReactiveUI.Primitives.Reactive [System.Runtime.CompilerServices.OverloadResolutionPriority(-2)] public static System.IObservable> CombineLatest(params System.IObservable[] sources) { } [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] - public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onError, params byte[] allowValueType) where T : struct { } + public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onNext, params byte[] allowValueType) where T : struct { } [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] public static System.IDisposable SubscribeSafe(System.IObservable source, System.IObserver observer, params byte[] allowValueType) where T : struct { } [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] - public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onError, params bool[] allowNullable) where T : struct { } + public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onNext, params bool[] allowNullable) where T : class { } [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] - public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onError, params bool[] allowNullable) where T : class { } + public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onNext, params bool[] allowNullable) where T : struct { } [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] public static System.IDisposable SubscribeSafe(System.IObservable source, System.IObserver observer, params bool[] allowNullable) where T : class { } [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] public static System.IDisposable SubscribeSafe(System.IObservable source, System.IObserver observer, params bool[] allowNullable) where T : struct { } [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] - public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onError, System.Action onCompleted, params byte[] allowValueType) where T : struct { } - [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onNext, System.Action onError, params byte[] allowValueType) where T : struct { } [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] - public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onError, System.Action onCompleted, params bool[] allowNullable) where T : class { } - [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] - public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onError, System.Action onCompleted, params bool[] allowNullable) where T : struct { } - [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onNext, System.Action onError, params bool[] allowNullable) where T : class { } [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onNext, System.Action onError, params bool[] allowNullable) where T : struct { } @@ -420,6 +414,18 @@ namespace ReactiveUI.Primitives.Reactive public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onNext, System.Action onError, System.Action onCompleted, params bool[] allowNullable) where T : class { } [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onNext, System.Action onError, System.Action onCompleted, params bool[] allowNullable) where T : struct { } + [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] + public static System.IDisposable SubscribeSafeErrors(System.IObservable source, System.Action onError, params byte[] allowValueType) where T : struct { } + [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] + public static System.IDisposable SubscribeSafeErrors(System.IObservable source, System.Action onError, params bool[] allowNullable) where T : class { } + [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] + public static System.IDisposable SubscribeSafeErrors(System.IObservable source, System.Action onError, params bool[] allowNullable) where T : struct { } + [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] + public static System.IDisposable SubscribeSafeErrors(System.IObservable source, System.Action onError, System.Action onCompleted, params byte[] allowValueType) where T : struct { } + [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] + public static System.IDisposable SubscribeSafeErrors(System.IObservable source, System.Action onError, System.Action onCompleted, params bool[] allowNullable) where T : class { } + [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] + public static System.IDisposable SubscribeSafeErrors(System.IObservable source, System.Action onError, System.Action onCompleted, params bool[] allowNullable) where T : struct { } extension(System.IDisposable disposable) { public ReactiveUI.Primitives.Disposables.SingleDisposable DisposeWith() { } @@ -557,16 +563,18 @@ namespace ReactiveUI.Primitives.Reactive public System.IObservable StartWith(System.Collections.Generic.IEnumerable values) { } public System.IObservable StartWith(params T[] values) { } [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] - public System.IDisposable SubscribeSafe(System.Action onError) { } + public System.IDisposable SubscribeSafe(System.Action onNext) { } [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] public System.IDisposable SubscribeSafe(System.IObserver observer) { } [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] - public System.IDisposable SubscribeSafe(System.Action onError, System.Action onCompleted) { } - [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] public System.IDisposable SubscribeSafe(System.Action onNext, System.Action onError) { } [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] public System.IDisposable SubscribeSafe(System.Action onNext, System.Action onError, System.Action onCompleted) { } [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] + public System.IDisposable SubscribeSafeErrors(System.Action onError) { } + [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] + public System.IDisposable SubscribeSafeErrors(System.Action onError, System.Action onCompleted) { } + [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] public System.IDisposable SubscribeSafePrimitives(System.IObserver observer) { } public System.IObservable Synchronize() { } public System.IObservable Synchronize(System.Threading.Lock gate) { } diff --git a/src/ReactiveUI.Primitives.Reactive/PublicAPI/net11.0/PublicAPI.txt b/src/ReactiveUI.Primitives.Reactive/PublicAPI/net11.0/PublicAPI.txt index 978f733b..d16ee3fb 100644 --- a/src/ReactiveUI.Primitives.Reactive/PublicAPI/net11.0/PublicAPI.txt +++ b/src/ReactiveUI.Primitives.Reactive/PublicAPI/net11.0/PublicAPI.txt @@ -390,26 +390,20 @@ namespace ReactiveUI.Primitives.Reactive [System.Runtime.CompilerServices.OverloadResolutionPriority(-2)] public static System.IObservable> CombineLatest(params System.IObservable[] sources) { } [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] - public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onError, params byte[] allowValueType) where T : struct { } + public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onNext, params byte[] allowValueType) where T : struct { } [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] public static System.IDisposable SubscribeSafe(System.IObservable source, System.IObserver observer, params byte[] allowValueType) where T : struct { } [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] - public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onError, params bool[] allowNullable) where T : struct { } + public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onNext, params bool[] allowNullable) where T : class { } [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] - public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onError, params bool[] allowNullable) where T : class { } + public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onNext, params bool[] allowNullable) where T : struct { } [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] public static System.IDisposable SubscribeSafe(System.IObservable source, System.IObserver observer, params bool[] allowNullable) where T : class { } [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] public static System.IDisposable SubscribeSafe(System.IObservable source, System.IObserver observer, params bool[] allowNullable) where T : struct { } [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] - public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onError, System.Action onCompleted, params byte[] allowValueType) where T : struct { } - [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onNext, System.Action onError, params byte[] allowValueType) where T : struct { } [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] - public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onError, System.Action onCompleted, params bool[] allowNullable) where T : class { } - [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] - public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onError, System.Action onCompleted, params bool[] allowNullable) where T : struct { } - [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onNext, System.Action onError, params bool[] allowNullable) where T : class { } [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onNext, System.Action onError, params bool[] allowNullable) where T : struct { } @@ -419,6 +413,18 @@ namespace ReactiveUI.Primitives.Reactive public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onNext, System.Action onError, System.Action onCompleted, params bool[] allowNullable) where T : class { } [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onNext, System.Action onError, System.Action onCompleted, params bool[] allowNullable) where T : struct { } + [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] + public static System.IDisposable SubscribeSafeErrors(System.IObservable source, System.Action onError, params byte[] allowValueType) where T : struct { } + [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] + public static System.IDisposable SubscribeSafeErrors(System.IObservable source, System.Action onError, params bool[] allowNullable) where T : class { } + [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] + public static System.IDisposable SubscribeSafeErrors(System.IObservable source, System.Action onError, params bool[] allowNullable) where T : struct { } + [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] + public static System.IDisposable SubscribeSafeErrors(System.IObservable source, System.Action onError, System.Action onCompleted, params byte[] allowValueType) where T : struct { } + [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] + public static System.IDisposable SubscribeSafeErrors(System.IObservable source, System.Action onError, System.Action onCompleted, params bool[] allowNullable) where T : class { } + [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] + public static System.IDisposable SubscribeSafeErrors(System.IObservable source, System.Action onError, System.Action onCompleted, params bool[] allowNullable) where T : struct { } extension(System.IDisposable disposable) { public ReactiveUI.Primitives.Disposables.SingleDisposable DisposeWith() { } @@ -556,16 +562,18 @@ namespace ReactiveUI.Primitives.Reactive public System.IObservable StartWith(System.Collections.Generic.IEnumerable values) { } public System.IObservable StartWith(params T[] values) { } [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] - public System.IDisposable SubscribeSafe(System.Action onError) { } + public System.IDisposable SubscribeSafe(System.Action onNext) { } [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] public System.IDisposable SubscribeSafe(System.IObserver observer) { } [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] - public System.IDisposable SubscribeSafe(System.Action onError, System.Action onCompleted) { } - [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] public System.IDisposable SubscribeSafe(System.Action onNext, System.Action onError) { } [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] public System.IDisposable SubscribeSafe(System.Action onNext, System.Action onError, System.Action onCompleted) { } [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] + public System.IDisposable SubscribeSafeErrors(System.Action onError) { } + [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] + public System.IDisposable SubscribeSafeErrors(System.Action onError, System.Action onCompleted) { } + [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] public System.IDisposable SubscribeSafePrimitives(System.IObserver observer) { } public System.IObservable Synchronize() { } public System.IObservable Synchronize(System.Threading.Lock gate) { } diff --git a/src/ReactiveUI.Primitives.Reactive/PublicAPI/net462/PublicAPI.txt b/src/ReactiveUI.Primitives.Reactive/PublicAPI/net462/PublicAPI.txt index f1c346b7..c6759219 100644 --- a/src/ReactiveUI.Primitives.Reactive/PublicAPI/net462/PublicAPI.txt +++ b/src/ReactiveUI.Primitives.Reactive/PublicAPI/net462/PublicAPI.txt @@ -388,21 +388,24 @@ namespace ReactiveUI.Primitives.Reactive public static System.IObservable BlendUnique(System.IObservable[] sources, System.Collections.Generic.IEqualityComparer? comparer) { } [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] public static System.IObservable> CombineLatest(params System.IObservable[] sources) { } - public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onError, params byte[] allowValueType) where T : struct { } + public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onNext, params byte[] allowValueType) where T : struct { } public static System.IDisposable SubscribeSafe(System.IObservable source, System.IObserver observer, params byte[] allowValueType) where T : struct { } - public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onError, params bool[] allowNullable) where T : struct { } - public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onError, params bool[] allowNullable) where T : class { } + public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onNext, params bool[] allowNullable) where T : class { } + public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onNext, params bool[] allowNullable) where T : struct { } public static System.IDisposable SubscribeSafe(System.IObservable source, System.IObserver observer, params bool[] allowNullable) where T : class { } public static System.IDisposable SubscribeSafe(System.IObservable source, System.IObserver observer, params bool[] allowNullable) where T : struct { } - public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onError, System.Action onCompleted, params byte[] allowValueType) where T : struct { } public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onNext, System.Action onError, params byte[] allowValueType) where T : struct { } - public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onError, System.Action onCompleted, params bool[] allowNullable) where T : class { } - public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onError, System.Action onCompleted, params bool[] allowNullable) where T : struct { } public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onNext, System.Action onError, params bool[] allowNullable) where T : class { } public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onNext, System.Action onError, params bool[] allowNullable) where T : struct { } public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onNext, System.Action onError, System.Action onCompleted, params byte[] allowValueType) where T : struct { } public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onNext, System.Action onError, System.Action onCompleted, params bool[] allowNullable) where T : class { } public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onNext, System.Action onError, System.Action onCompleted, params bool[] allowNullable) where T : struct { } + public static System.IDisposable SubscribeSafeErrors(System.IObservable source, System.Action onError, params byte[] allowValueType) where T : struct { } + public static System.IDisposable SubscribeSafeErrors(System.IObservable source, System.Action onError, params bool[] allowNullable) where T : class { } + public static System.IDisposable SubscribeSafeErrors(System.IObservable source, System.Action onError, params bool[] allowNullable) where T : struct { } + public static System.IDisposable SubscribeSafeErrors(System.IObservable source, System.Action onError, System.Action onCompleted, params byte[] allowValueType) where T : struct { } + public static System.IDisposable SubscribeSafeErrors(System.IObservable source, System.Action onError, System.Action onCompleted, params bool[] allowNullable) where T : class { } + public static System.IDisposable SubscribeSafeErrors(System.IObservable source, System.Action onError, System.Action onCompleted, params bool[] allowNullable) where T : struct { } extension(System.IDisposable disposable) { public ReactiveUI.Primitives.Disposables.SingleDisposable DisposeWith() { } @@ -540,16 +543,18 @@ namespace ReactiveUI.Primitives.Reactive public System.IObservable StartWith(System.Collections.Generic.IEnumerable values) { } public System.IObservable StartWith(params T[] values) { } [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] - public System.IDisposable SubscribeSafe(System.Action onError) { } + public System.IDisposable SubscribeSafe(System.Action onNext) { } [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] public System.IDisposable SubscribeSafe(System.IObserver observer) { } [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] - public System.IDisposable SubscribeSafe(System.Action onError, System.Action onCompleted) { } - [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] public System.IDisposable SubscribeSafe(System.Action onNext, System.Action onError) { } [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] public System.IDisposable SubscribeSafe(System.Action onNext, System.Action onError, System.Action onCompleted) { } [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] + public System.IDisposable SubscribeSafeErrors(System.Action onError) { } + [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] + public System.IDisposable SubscribeSafeErrors(System.Action onError, System.Action onCompleted) { } + [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] public System.IDisposable SubscribeSafePrimitives(System.IObserver observer) { } public System.IObservable Synchronize() { } public System.IObservable Synchronize(object gate) { } diff --git a/src/ReactiveUI.Primitives.Reactive/PublicAPI/net472/PublicAPI.txt b/src/ReactiveUI.Primitives.Reactive/PublicAPI/net472/PublicAPI.txt index f1c346b7..c6759219 100644 --- a/src/ReactiveUI.Primitives.Reactive/PublicAPI/net472/PublicAPI.txt +++ b/src/ReactiveUI.Primitives.Reactive/PublicAPI/net472/PublicAPI.txt @@ -388,21 +388,24 @@ namespace ReactiveUI.Primitives.Reactive public static System.IObservable BlendUnique(System.IObservable[] sources, System.Collections.Generic.IEqualityComparer? comparer) { } [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] public static System.IObservable> CombineLatest(params System.IObservable[] sources) { } - public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onError, params byte[] allowValueType) where T : struct { } + public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onNext, params byte[] allowValueType) where T : struct { } public static System.IDisposable SubscribeSafe(System.IObservable source, System.IObserver observer, params byte[] allowValueType) where T : struct { } - public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onError, params bool[] allowNullable) where T : struct { } - public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onError, params bool[] allowNullable) where T : class { } + public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onNext, params bool[] allowNullable) where T : class { } + public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onNext, params bool[] allowNullable) where T : struct { } public static System.IDisposable SubscribeSafe(System.IObservable source, System.IObserver observer, params bool[] allowNullable) where T : class { } public static System.IDisposable SubscribeSafe(System.IObservable source, System.IObserver observer, params bool[] allowNullable) where T : struct { } - public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onError, System.Action onCompleted, params byte[] allowValueType) where T : struct { } public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onNext, System.Action onError, params byte[] allowValueType) where T : struct { } - public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onError, System.Action onCompleted, params bool[] allowNullable) where T : class { } - public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onError, System.Action onCompleted, params bool[] allowNullable) where T : struct { } public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onNext, System.Action onError, params bool[] allowNullable) where T : class { } public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onNext, System.Action onError, params bool[] allowNullable) where T : struct { } public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onNext, System.Action onError, System.Action onCompleted, params byte[] allowValueType) where T : struct { } public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onNext, System.Action onError, System.Action onCompleted, params bool[] allowNullable) where T : class { } public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onNext, System.Action onError, System.Action onCompleted, params bool[] allowNullable) where T : struct { } + public static System.IDisposable SubscribeSafeErrors(System.IObservable source, System.Action onError, params byte[] allowValueType) where T : struct { } + public static System.IDisposable SubscribeSafeErrors(System.IObservable source, System.Action onError, params bool[] allowNullable) where T : class { } + public static System.IDisposable SubscribeSafeErrors(System.IObservable source, System.Action onError, params bool[] allowNullable) where T : struct { } + public static System.IDisposable SubscribeSafeErrors(System.IObservable source, System.Action onError, System.Action onCompleted, params byte[] allowValueType) where T : struct { } + public static System.IDisposable SubscribeSafeErrors(System.IObservable source, System.Action onError, System.Action onCompleted, params bool[] allowNullable) where T : class { } + public static System.IDisposable SubscribeSafeErrors(System.IObservable source, System.Action onError, System.Action onCompleted, params bool[] allowNullable) where T : struct { } extension(System.IDisposable disposable) { public ReactiveUI.Primitives.Disposables.SingleDisposable DisposeWith() { } @@ -540,16 +543,18 @@ namespace ReactiveUI.Primitives.Reactive public System.IObservable StartWith(System.Collections.Generic.IEnumerable values) { } public System.IObservable StartWith(params T[] values) { } [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] - public System.IDisposable SubscribeSafe(System.Action onError) { } + public System.IDisposable SubscribeSafe(System.Action onNext) { } [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] public System.IDisposable SubscribeSafe(System.IObserver observer) { } [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] - public System.IDisposable SubscribeSafe(System.Action onError, System.Action onCompleted) { } - [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] public System.IDisposable SubscribeSafe(System.Action onNext, System.Action onError) { } [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] public System.IDisposable SubscribeSafe(System.Action onNext, System.Action onError, System.Action onCompleted) { } [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] + public System.IDisposable SubscribeSafeErrors(System.Action onError) { } + [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] + public System.IDisposable SubscribeSafeErrors(System.Action onError, System.Action onCompleted) { } + [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] public System.IDisposable SubscribeSafePrimitives(System.IObserver observer) { } public System.IObservable Synchronize() { } public System.IObservable Synchronize(object gate) { } diff --git a/src/ReactiveUI.Primitives.Reactive/PublicAPI/net48/PublicAPI.txt b/src/ReactiveUI.Primitives.Reactive/PublicAPI/net48/PublicAPI.txt index f1c346b7..c6759219 100644 --- a/src/ReactiveUI.Primitives.Reactive/PublicAPI/net48/PublicAPI.txt +++ b/src/ReactiveUI.Primitives.Reactive/PublicAPI/net48/PublicAPI.txt @@ -388,21 +388,24 @@ namespace ReactiveUI.Primitives.Reactive public static System.IObservable BlendUnique(System.IObservable[] sources, System.Collections.Generic.IEqualityComparer? comparer) { } [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] public static System.IObservable> CombineLatest(params System.IObservable[] sources) { } - public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onError, params byte[] allowValueType) where T : struct { } + public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onNext, params byte[] allowValueType) where T : struct { } public static System.IDisposable SubscribeSafe(System.IObservable source, System.IObserver observer, params byte[] allowValueType) where T : struct { } - public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onError, params bool[] allowNullable) where T : struct { } - public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onError, params bool[] allowNullable) where T : class { } + public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onNext, params bool[] allowNullable) where T : class { } + public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onNext, params bool[] allowNullable) where T : struct { } public static System.IDisposable SubscribeSafe(System.IObservable source, System.IObserver observer, params bool[] allowNullable) where T : class { } public static System.IDisposable SubscribeSafe(System.IObservable source, System.IObserver observer, params bool[] allowNullable) where T : struct { } - public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onError, System.Action onCompleted, params byte[] allowValueType) where T : struct { } public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onNext, System.Action onError, params byte[] allowValueType) where T : struct { } - public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onError, System.Action onCompleted, params bool[] allowNullable) where T : class { } - public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onError, System.Action onCompleted, params bool[] allowNullable) where T : struct { } public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onNext, System.Action onError, params bool[] allowNullable) where T : class { } public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onNext, System.Action onError, params bool[] allowNullable) where T : struct { } public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onNext, System.Action onError, System.Action onCompleted, params byte[] allowValueType) where T : struct { } public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onNext, System.Action onError, System.Action onCompleted, params bool[] allowNullable) where T : class { } public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onNext, System.Action onError, System.Action onCompleted, params bool[] allowNullable) where T : struct { } + public static System.IDisposable SubscribeSafeErrors(System.IObservable source, System.Action onError, params byte[] allowValueType) where T : struct { } + public static System.IDisposable SubscribeSafeErrors(System.IObservable source, System.Action onError, params bool[] allowNullable) where T : class { } + public static System.IDisposable SubscribeSafeErrors(System.IObservable source, System.Action onError, params bool[] allowNullable) where T : struct { } + public static System.IDisposable SubscribeSafeErrors(System.IObservable source, System.Action onError, System.Action onCompleted, params byte[] allowValueType) where T : struct { } + public static System.IDisposable SubscribeSafeErrors(System.IObservable source, System.Action onError, System.Action onCompleted, params bool[] allowNullable) where T : class { } + public static System.IDisposable SubscribeSafeErrors(System.IObservable source, System.Action onError, System.Action onCompleted, params bool[] allowNullable) where T : struct { } extension(System.IDisposable disposable) { public ReactiveUI.Primitives.Disposables.SingleDisposable DisposeWith() { } @@ -540,16 +543,18 @@ namespace ReactiveUI.Primitives.Reactive public System.IObservable StartWith(System.Collections.Generic.IEnumerable values) { } public System.IObservable StartWith(params T[] values) { } [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] - public System.IDisposable SubscribeSafe(System.Action onError) { } + public System.IDisposable SubscribeSafe(System.Action onNext) { } [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] public System.IDisposable SubscribeSafe(System.IObserver observer) { } [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] - public System.IDisposable SubscribeSafe(System.Action onError, System.Action onCompleted) { } - [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] public System.IDisposable SubscribeSafe(System.Action onNext, System.Action onError) { } [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] public System.IDisposable SubscribeSafe(System.Action onNext, System.Action onError, System.Action onCompleted) { } [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] + public System.IDisposable SubscribeSafeErrors(System.Action onError) { } + [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] + public System.IDisposable SubscribeSafeErrors(System.Action onError, System.Action onCompleted) { } + [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] public System.IDisposable SubscribeSafePrimitives(System.IObserver observer) { } public System.IObservable Synchronize() { } public System.IObservable Synchronize(object gate) { } diff --git a/src/ReactiveUI.Primitives.Reactive/PublicAPI/net481/PublicAPI.txt b/src/ReactiveUI.Primitives.Reactive/PublicAPI/net481/PublicAPI.txt index f1c346b7..c6759219 100644 --- a/src/ReactiveUI.Primitives.Reactive/PublicAPI/net481/PublicAPI.txt +++ b/src/ReactiveUI.Primitives.Reactive/PublicAPI/net481/PublicAPI.txt @@ -388,21 +388,24 @@ namespace ReactiveUI.Primitives.Reactive public static System.IObservable BlendUnique(System.IObservable[] sources, System.Collections.Generic.IEqualityComparer? comparer) { } [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] public static System.IObservable> CombineLatest(params System.IObservable[] sources) { } - public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onError, params byte[] allowValueType) where T : struct { } + public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onNext, params byte[] allowValueType) where T : struct { } public static System.IDisposable SubscribeSafe(System.IObservable source, System.IObserver observer, params byte[] allowValueType) where T : struct { } - public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onError, params bool[] allowNullable) where T : struct { } - public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onError, params bool[] allowNullable) where T : class { } + public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onNext, params bool[] allowNullable) where T : class { } + public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onNext, params bool[] allowNullable) where T : struct { } public static System.IDisposable SubscribeSafe(System.IObservable source, System.IObserver observer, params bool[] allowNullable) where T : class { } public static System.IDisposable SubscribeSafe(System.IObservable source, System.IObserver observer, params bool[] allowNullable) where T : struct { } - public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onError, System.Action onCompleted, params byte[] allowValueType) where T : struct { } public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onNext, System.Action onError, params byte[] allowValueType) where T : struct { } - public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onError, System.Action onCompleted, params bool[] allowNullable) where T : class { } - public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onError, System.Action onCompleted, params bool[] allowNullable) where T : struct { } public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onNext, System.Action onError, params bool[] allowNullable) where T : class { } public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onNext, System.Action onError, params bool[] allowNullable) where T : struct { } public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onNext, System.Action onError, System.Action onCompleted, params byte[] allowValueType) where T : struct { } public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onNext, System.Action onError, System.Action onCompleted, params bool[] allowNullable) where T : class { } public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onNext, System.Action onError, System.Action onCompleted, params bool[] allowNullable) where T : struct { } + public static System.IDisposable SubscribeSafeErrors(System.IObservable source, System.Action onError, params byte[] allowValueType) where T : struct { } + public static System.IDisposable SubscribeSafeErrors(System.IObservable source, System.Action onError, params bool[] allowNullable) where T : class { } + public static System.IDisposable SubscribeSafeErrors(System.IObservable source, System.Action onError, params bool[] allowNullable) where T : struct { } + public static System.IDisposable SubscribeSafeErrors(System.IObservable source, System.Action onError, System.Action onCompleted, params byte[] allowValueType) where T : struct { } + public static System.IDisposable SubscribeSafeErrors(System.IObservable source, System.Action onError, System.Action onCompleted, params bool[] allowNullable) where T : class { } + public static System.IDisposable SubscribeSafeErrors(System.IObservable source, System.Action onError, System.Action onCompleted, params bool[] allowNullable) where T : struct { } extension(System.IDisposable disposable) { public ReactiveUI.Primitives.Disposables.SingleDisposable DisposeWith() { } @@ -540,16 +543,18 @@ namespace ReactiveUI.Primitives.Reactive public System.IObservable StartWith(System.Collections.Generic.IEnumerable values) { } public System.IObservable StartWith(params T[] values) { } [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] - public System.IDisposable SubscribeSafe(System.Action onError) { } + public System.IDisposable SubscribeSafe(System.Action onNext) { } [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] public System.IDisposable SubscribeSafe(System.IObserver observer) { } [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] - public System.IDisposable SubscribeSafe(System.Action onError, System.Action onCompleted) { } - [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] public System.IDisposable SubscribeSafe(System.Action onNext, System.Action onError) { } [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] public System.IDisposable SubscribeSafe(System.Action onNext, System.Action onError, System.Action onCompleted) { } [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] + public System.IDisposable SubscribeSafeErrors(System.Action onError) { } + [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] + public System.IDisposable SubscribeSafeErrors(System.Action onError, System.Action onCompleted) { } + [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] public System.IDisposable SubscribeSafePrimitives(System.IObserver observer) { } public System.IObservable Synchronize() { } public System.IObservable Synchronize(object gate) { } diff --git a/src/ReactiveUI.Primitives.Reactive/PublicAPI/net8.0/PublicAPI.txt b/src/ReactiveUI.Primitives.Reactive/PublicAPI/net8.0/PublicAPI.txt index 00a42539..f829b288 100644 --- a/src/ReactiveUI.Primitives.Reactive/PublicAPI/net8.0/PublicAPI.txt +++ b/src/ReactiveUI.Primitives.Reactive/PublicAPI/net8.0/PublicAPI.txt @@ -388,21 +388,24 @@ namespace ReactiveUI.Primitives.Reactive public static System.IObservable BlendUnique(System.IObservable[] sources, System.Collections.Generic.IEqualityComparer? comparer) { } [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] public static System.IObservable> CombineLatest(params System.IObservable[] sources) { } - public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onError, params byte[] allowValueType) where T : struct { } + public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onNext, params byte[] allowValueType) where T : struct { } public static System.IDisposable SubscribeSafe(System.IObservable source, System.IObserver observer, params byte[] allowValueType) where T : struct { } - public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onError, params bool[] allowNullable) where T : struct { } - public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onError, params bool[] allowNullable) where T : class { } + public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onNext, params bool[] allowNullable) where T : class { } + public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onNext, params bool[] allowNullable) where T : struct { } public static System.IDisposable SubscribeSafe(System.IObservable source, System.IObserver observer, params bool[] allowNullable) where T : class { } public static System.IDisposable SubscribeSafe(System.IObservable source, System.IObserver observer, params bool[] allowNullable) where T : struct { } - public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onError, System.Action onCompleted, params byte[] allowValueType) where T : struct { } public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onNext, System.Action onError, params byte[] allowValueType) where T : struct { } - public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onError, System.Action onCompleted, params bool[] allowNullable) where T : class { } - public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onError, System.Action onCompleted, params bool[] allowNullable) where T : struct { } public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onNext, System.Action onError, params bool[] allowNullable) where T : class { } public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onNext, System.Action onError, params bool[] allowNullable) where T : struct { } public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onNext, System.Action onError, System.Action onCompleted, params byte[] allowValueType) where T : struct { } public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onNext, System.Action onError, System.Action onCompleted, params bool[] allowNullable) where T : class { } public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onNext, System.Action onError, System.Action onCompleted, params bool[] allowNullable) where T : struct { } + public static System.IDisposable SubscribeSafeErrors(System.IObservable source, System.Action onError, params byte[] allowValueType) where T : struct { } + public static System.IDisposable SubscribeSafeErrors(System.IObservable source, System.Action onError, params bool[] allowNullable) where T : class { } + public static System.IDisposable SubscribeSafeErrors(System.IObservable source, System.Action onError, params bool[] allowNullable) where T : struct { } + public static System.IDisposable SubscribeSafeErrors(System.IObservable source, System.Action onError, System.Action onCompleted, params byte[] allowValueType) where T : struct { } + public static System.IDisposable SubscribeSafeErrors(System.IObservable source, System.Action onError, System.Action onCompleted, params bool[] allowNullable) where T : class { } + public static System.IDisposable SubscribeSafeErrors(System.IObservable source, System.Action onError, System.Action onCompleted, params bool[] allowNullable) where T : struct { } extension(System.IDisposable disposable) { public ReactiveUI.Primitives.Disposables.SingleDisposable DisposeWith() { } @@ -540,16 +543,18 @@ namespace ReactiveUI.Primitives.Reactive public System.IObservable StartWith(System.Collections.Generic.IEnumerable values) { } public System.IObservable StartWith(params T[] values) { } [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] - public System.IDisposable SubscribeSafe(System.Action onError) { } + public System.IDisposable SubscribeSafe(System.Action onNext) { } [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] public System.IDisposable SubscribeSafe(System.IObserver observer) { } [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] - public System.IDisposable SubscribeSafe(System.Action onError, System.Action onCompleted) { } - [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] public System.IDisposable SubscribeSafe(System.Action onNext, System.Action onError) { } [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] public System.IDisposable SubscribeSafe(System.Action onNext, System.Action onError, System.Action onCompleted) { } [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] + public System.IDisposable SubscribeSafeErrors(System.Action onError) { } + [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] + public System.IDisposable SubscribeSafeErrors(System.Action onError, System.Action onCompleted) { } + [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] public System.IDisposable SubscribeSafePrimitives(System.IObserver observer) { } public System.IObservable Synchronize() { } public System.IObservable Synchronize(object gate) { } diff --git a/src/ReactiveUI.Primitives.Reactive/PublicAPI/net9.0/PublicAPI.txt b/src/ReactiveUI.Primitives.Reactive/PublicAPI/net9.0/PublicAPI.txt index 978f733b..d16ee3fb 100644 --- a/src/ReactiveUI.Primitives.Reactive/PublicAPI/net9.0/PublicAPI.txt +++ b/src/ReactiveUI.Primitives.Reactive/PublicAPI/net9.0/PublicAPI.txt @@ -390,26 +390,20 @@ namespace ReactiveUI.Primitives.Reactive [System.Runtime.CompilerServices.OverloadResolutionPriority(-2)] public static System.IObservable> CombineLatest(params System.IObservable[] sources) { } [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] - public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onError, params byte[] allowValueType) where T : struct { } + public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onNext, params byte[] allowValueType) where T : struct { } [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] public static System.IDisposable SubscribeSafe(System.IObservable source, System.IObserver observer, params byte[] allowValueType) where T : struct { } [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] - public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onError, params bool[] allowNullable) where T : struct { } + public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onNext, params bool[] allowNullable) where T : class { } [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] - public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onError, params bool[] allowNullable) where T : class { } + public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onNext, params bool[] allowNullable) where T : struct { } [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] public static System.IDisposable SubscribeSafe(System.IObservable source, System.IObserver observer, params bool[] allowNullable) where T : class { } [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] public static System.IDisposable SubscribeSafe(System.IObservable source, System.IObserver observer, params bool[] allowNullable) where T : struct { } [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] - public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onError, System.Action onCompleted, params byte[] allowValueType) where T : struct { } - [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onNext, System.Action onError, params byte[] allowValueType) where T : struct { } [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] - public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onError, System.Action onCompleted, params bool[] allowNullable) where T : class { } - [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] - public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onError, System.Action onCompleted, params bool[] allowNullable) where T : struct { } - [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onNext, System.Action onError, params bool[] allowNullable) where T : class { } [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onNext, System.Action onError, params bool[] allowNullable) where T : struct { } @@ -419,6 +413,18 @@ namespace ReactiveUI.Primitives.Reactive public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onNext, System.Action onError, System.Action onCompleted, params bool[] allowNullable) where T : class { } [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onNext, System.Action onError, System.Action onCompleted, params bool[] allowNullable) where T : struct { } + [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] + public static System.IDisposable SubscribeSafeErrors(System.IObservable source, System.Action onError, params byte[] allowValueType) where T : struct { } + [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] + public static System.IDisposable SubscribeSafeErrors(System.IObservable source, System.Action onError, params bool[] allowNullable) where T : class { } + [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] + public static System.IDisposable SubscribeSafeErrors(System.IObservable source, System.Action onError, params bool[] allowNullable) where T : struct { } + [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] + public static System.IDisposable SubscribeSafeErrors(System.IObservable source, System.Action onError, System.Action onCompleted, params byte[] allowValueType) where T : struct { } + [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] + public static System.IDisposable SubscribeSafeErrors(System.IObservable source, System.Action onError, System.Action onCompleted, params bool[] allowNullable) where T : class { } + [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] + public static System.IDisposable SubscribeSafeErrors(System.IObservable source, System.Action onError, System.Action onCompleted, params bool[] allowNullable) where T : struct { } extension(System.IDisposable disposable) { public ReactiveUI.Primitives.Disposables.SingleDisposable DisposeWith() { } @@ -556,16 +562,18 @@ namespace ReactiveUI.Primitives.Reactive public System.IObservable StartWith(System.Collections.Generic.IEnumerable values) { } public System.IObservable StartWith(params T[] values) { } [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] - public System.IDisposable SubscribeSafe(System.Action onError) { } + public System.IDisposable SubscribeSafe(System.Action onNext) { } [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] public System.IDisposable SubscribeSafe(System.IObserver observer) { } [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] - public System.IDisposable SubscribeSafe(System.Action onError, System.Action onCompleted) { } - [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] public System.IDisposable SubscribeSafe(System.Action onNext, System.Action onError) { } [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] public System.IDisposable SubscribeSafe(System.Action onNext, System.Action onError, System.Action onCompleted) { } [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] + public System.IDisposable SubscribeSafeErrors(System.Action onError) { } + [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] + public System.IDisposable SubscribeSafeErrors(System.Action onError, System.Action onCompleted) { } + [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] public System.IDisposable SubscribeSafePrimitives(System.IObserver observer) { } public System.IObservable Synchronize() { } public System.IObservable Synchronize(System.Threading.Lock gate) { } diff --git a/src/ReactiveUI.Primitives/PublicAPI/net10.0-android/PublicAPI.txt b/src/ReactiveUI.Primitives/PublicAPI/net10.0-android/PublicAPI.txt index 63ab6113..8db31d5c 100644 --- a/src/ReactiveUI.Primitives/PublicAPI/net10.0-android/PublicAPI.txt +++ b/src/ReactiveUI.Primitives/PublicAPI/net10.0-android/PublicAPI.txt @@ -49,26 +49,20 @@ namespace ReactiveUI.Primitives [System.Runtime.CompilerServices.OverloadResolutionPriority(-2)] public static System.IObservable> CombineLatest(params System.IObservable[] sources) { } [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] - public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onError, params byte[] allowValueType) where T : struct { } + public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onNext, params byte[] allowValueType) where T : struct { } [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] public static System.IDisposable SubscribeSafe(System.IObservable source, System.IObserver observer, params byte[] allowValueType) where T : struct { } [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] - public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onError, params bool[] allowNullable) where T : struct { } + public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onNext, params bool[] allowNullable) where T : class { } [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] - public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onError, params bool[] allowNullable) where T : class { } + public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onNext, params bool[] allowNullable) where T : struct { } [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] public static System.IDisposable SubscribeSafe(System.IObservable source, System.IObserver observer, params bool[] allowNullable) where T : class { } [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] public static System.IDisposable SubscribeSafe(System.IObservable source, System.IObserver observer, params bool[] allowNullable) where T : struct { } [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] - public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onError, System.Action onCompleted, params byte[] allowValueType) where T : struct { } - [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onNext, System.Action onError, params byte[] allowValueType) where T : struct { } [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] - public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onError, System.Action onCompleted, params bool[] allowNullable) where T : class { } - [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] - public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onError, System.Action onCompleted, params bool[] allowNullable) where T : struct { } - [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onNext, System.Action onError, params bool[] allowNullable) where T : class { } [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onNext, System.Action onError, params bool[] allowNullable) where T : struct { } @@ -78,6 +72,18 @@ namespace ReactiveUI.Primitives public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onNext, System.Action onError, System.Action onCompleted, params bool[] allowNullable) where T : class { } [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onNext, System.Action onError, System.Action onCompleted, params bool[] allowNullable) where T : struct { } + [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] + public static System.IDisposable SubscribeSafeErrors(System.IObservable source, System.Action onError, params byte[] allowValueType) where T : struct { } + [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] + public static System.IDisposable SubscribeSafeErrors(System.IObservable source, System.Action onError, params bool[] allowNullable) where T : class { } + [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] + public static System.IDisposable SubscribeSafeErrors(System.IObservable source, System.Action onError, params bool[] allowNullable) where T : struct { } + [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] + public static System.IDisposable SubscribeSafeErrors(System.IObservable source, System.Action onError, System.Action onCompleted, params byte[] allowValueType) where T : struct { } + [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] + public static System.IDisposable SubscribeSafeErrors(System.IObservable source, System.Action onError, System.Action onCompleted, params bool[] allowNullable) where T : class { } + [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] + public static System.IDisposable SubscribeSafeErrors(System.IObservable source, System.Action onError, System.Action onCompleted, params bool[] allowNullable) where T : struct { } extension(System.IDisposable disposable) { public ReactiveUI.Primitives.Disposables.SingleDisposable DisposeWith() { } @@ -184,16 +190,18 @@ namespace ReactiveUI.Primitives public System.IObservable StartWith(System.Collections.Generic.IEnumerable values) { } public System.IObservable StartWith(params T[] values) { } [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] - public System.IDisposable SubscribeSafe(System.Action onError) { } + public System.IDisposable SubscribeSafe(System.Action onNext) { } [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] public System.IDisposable SubscribeSafe(System.IObserver observer) { } [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] - public System.IDisposable SubscribeSafe(System.Action onError, System.Action onCompleted) { } - [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] public System.IDisposable SubscribeSafe(System.Action onNext, System.Action onError) { } [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] public System.IDisposable SubscribeSafe(System.Action onNext, System.Action onError, System.Action onCompleted) { } [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] + public System.IDisposable SubscribeSafeErrors(System.Action onError) { } + [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] + public System.IDisposable SubscribeSafeErrors(System.Action onError, System.Action onCompleted) { } + [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] public System.IDisposable SubscribeSafePrimitives(System.IObserver observer) { } public System.IObservable Synchronize() { } public System.IObservable Synchronize(System.Threading.Lock gate) { } diff --git a/src/ReactiveUI.Primitives/PublicAPI/net10.0-ios/PublicAPI.txt b/src/ReactiveUI.Primitives/PublicAPI/net10.0-ios/PublicAPI.txt index 2cd8c13e..1cc237a7 100644 --- a/src/ReactiveUI.Primitives/PublicAPI/net10.0-ios/PublicAPI.txt +++ b/src/ReactiveUI.Primitives/PublicAPI/net10.0-ios/PublicAPI.txt @@ -49,26 +49,20 @@ namespace ReactiveUI.Primitives [System.Runtime.CompilerServices.OverloadResolutionPriority(-2)] public static System.IObservable> CombineLatest(params System.IObservable[] sources) { } [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] - public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onError, params byte[] allowValueType) where T : struct { } + public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onNext, params byte[] allowValueType) where T : struct { } [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] public static System.IDisposable SubscribeSafe(System.IObservable source, System.IObserver observer, params byte[] allowValueType) where T : struct { } [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] - public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onError, params bool[] allowNullable) where T : struct { } + public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onNext, params bool[] allowNullable) where T : class { } [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] - public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onError, params bool[] allowNullable) where T : class { } + public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onNext, params bool[] allowNullable) where T : struct { } [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] public static System.IDisposable SubscribeSafe(System.IObservable source, System.IObserver observer, params bool[] allowNullable) where T : class { } [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] public static System.IDisposable SubscribeSafe(System.IObservable source, System.IObserver observer, params bool[] allowNullable) where T : struct { } [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] - public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onError, System.Action onCompleted, params byte[] allowValueType) where T : struct { } - [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onNext, System.Action onError, params byte[] allowValueType) where T : struct { } [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] - public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onError, System.Action onCompleted, params bool[] allowNullable) where T : class { } - [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] - public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onError, System.Action onCompleted, params bool[] allowNullable) where T : struct { } - [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onNext, System.Action onError, params bool[] allowNullable) where T : class { } [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onNext, System.Action onError, params bool[] allowNullable) where T : struct { } @@ -78,6 +72,18 @@ namespace ReactiveUI.Primitives public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onNext, System.Action onError, System.Action onCompleted, params bool[] allowNullable) where T : class { } [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onNext, System.Action onError, System.Action onCompleted, params bool[] allowNullable) where T : struct { } + [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] + public static System.IDisposable SubscribeSafeErrors(System.IObservable source, System.Action onError, params byte[] allowValueType) where T : struct { } + [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] + public static System.IDisposable SubscribeSafeErrors(System.IObservable source, System.Action onError, params bool[] allowNullable) where T : class { } + [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] + public static System.IDisposable SubscribeSafeErrors(System.IObservable source, System.Action onError, params bool[] allowNullable) where T : struct { } + [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] + public static System.IDisposable SubscribeSafeErrors(System.IObservable source, System.Action onError, System.Action onCompleted, params byte[] allowValueType) where T : struct { } + [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] + public static System.IDisposable SubscribeSafeErrors(System.IObservable source, System.Action onError, System.Action onCompleted, params bool[] allowNullable) where T : class { } + [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] + public static System.IDisposable SubscribeSafeErrors(System.IObservable source, System.Action onError, System.Action onCompleted, params bool[] allowNullable) where T : struct { } extension(System.IDisposable disposable) { public ReactiveUI.Primitives.Disposables.SingleDisposable DisposeWith() { } @@ -184,16 +190,18 @@ namespace ReactiveUI.Primitives public System.IObservable StartWith(System.Collections.Generic.IEnumerable values) { } public System.IObservable StartWith(params T[] values) { } [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] - public System.IDisposable SubscribeSafe(System.Action onError) { } + public System.IDisposable SubscribeSafe(System.Action onNext) { } [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] public System.IDisposable SubscribeSafe(System.IObserver observer) { } [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] - public System.IDisposable SubscribeSafe(System.Action onError, System.Action onCompleted) { } - [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] public System.IDisposable SubscribeSafe(System.Action onNext, System.Action onError) { } [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] public System.IDisposable SubscribeSafe(System.Action onNext, System.Action onError, System.Action onCompleted) { } [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] + public System.IDisposable SubscribeSafeErrors(System.Action onError) { } + [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] + public System.IDisposable SubscribeSafeErrors(System.Action onError, System.Action onCompleted) { } + [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] public System.IDisposable SubscribeSafePrimitives(System.IObserver observer) { } public System.IObservable Synchronize() { } public System.IObservable Synchronize(System.Threading.Lock gate) { } diff --git a/src/ReactiveUI.Primitives/PublicAPI/net10.0-maccatalyst/PublicAPI.txt b/src/ReactiveUI.Primitives/PublicAPI/net10.0-maccatalyst/PublicAPI.txt index be40c9dd..fa2f67bc 100644 --- a/src/ReactiveUI.Primitives/PublicAPI/net10.0-maccatalyst/PublicAPI.txt +++ b/src/ReactiveUI.Primitives/PublicAPI/net10.0-maccatalyst/PublicAPI.txt @@ -49,26 +49,20 @@ namespace ReactiveUI.Primitives [System.Runtime.CompilerServices.OverloadResolutionPriority(-2)] public static System.IObservable> CombineLatest(params System.IObservable[] sources) { } [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] - public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onError, params byte[] allowValueType) where T : struct { } + public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onNext, params byte[] allowValueType) where T : struct { } [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] public static System.IDisposable SubscribeSafe(System.IObservable source, System.IObserver observer, params byte[] allowValueType) where T : struct { } [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] - public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onError, params bool[] allowNullable) where T : struct { } + public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onNext, params bool[] allowNullable) where T : class { } [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] - public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onError, params bool[] allowNullable) where T : class { } + public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onNext, params bool[] allowNullable) where T : struct { } [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] public static System.IDisposable SubscribeSafe(System.IObservable source, System.IObserver observer, params bool[] allowNullable) where T : class { } [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] public static System.IDisposable SubscribeSafe(System.IObservable source, System.IObserver observer, params bool[] allowNullable) where T : struct { } [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] - public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onError, System.Action onCompleted, params byte[] allowValueType) where T : struct { } - [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onNext, System.Action onError, params byte[] allowValueType) where T : struct { } [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] - public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onError, System.Action onCompleted, params bool[] allowNullable) where T : class { } - [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] - public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onError, System.Action onCompleted, params bool[] allowNullable) where T : struct { } - [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onNext, System.Action onError, params bool[] allowNullable) where T : class { } [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onNext, System.Action onError, params bool[] allowNullable) where T : struct { } @@ -78,6 +72,18 @@ namespace ReactiveUI.Primitives public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onNext, System.Action onError, System.Action onCompleted, params bool[] allowNullable) where T : class { } [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onNext, System.Action onError, System.Action onCompleted, params bool[] allowNullable) where T : struct { } + [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] + public static System.IDisposable SubscribeSafeErrors(System.IObservable source, System.Action onError, params byte[] allowValueType) where T : struct { } + [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] + public static System.IDisposable SubscribeSafeErrors(System.IObservable source, System.Action onError, params bool[] allowNullable) where T : class { } + [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] + public static System.IDisposable SubscribeSafeErrors(System.IObservable source, System.Action onError, params bool[] allowNullable) where T : struct { } + [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] + public static System.IDisposable SubscribeSafeErrors(System.IObservable source, System.Action onError, System.Action onCompleted, params byte[] allowValueType) where T : struct { } + [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] + public static System.IDisposable SubscribeSafeErrors(System.IObservable source, System.Action onError, System.Action onCompleted, params bool[] allowNullable) where T : class { } + [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] + public static System.IDisposable SubscribeSafeErrors(System.IObservable source, System.Action onError, System.Action onCompleted, params bool[] allowNullable) where T : struct { } extension(System.IDisposable disposable) { public ReactiveUI.Primitives.Disposables.SingleDisposable DisposeWith() { } @@ -184,16 +190,18 @@ namespace ReactiveUI.Primitives public System.IObservable StartWith(System.Collections.Generic.IEnumerable values) { } public System.IObservable StartWith(params T[] values) { } [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] - public System.IDisposable SubscribeSafe(System.Action onError) { } + public System.IDisposable SubscribeSafe(System.Action onNext) { } [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] public System.IDisposable SubscribeSafe(System.IObserver observer) { } [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] - public System.IDisposable SubscribeSafe(System.Action onError, System.Action onCompleted) { } - [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] public System.IDisposable SubscribeSafe(System.Action onNext, System.Action onError) { } [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] public System.IDisposable SubscribeSafe(System.Action onNext, System.Action onError, System.Action onCompleted) { } [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] + public System.IDisposable SubscribeSafeErrors(System.Action onError) { } + [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] + public System.IDisposable SubscribeSafeErrors(System.Action onError, System.Action onCompleted) { } + [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] public System.IDisposable SubscribeSafePrimitives(System.IObserver observer) { } public System.IObservable Synchronize() { } public System.IObservable Synchronize(System.Threading.Lock gate) { } diff --git a/src/ReactiveUI.Primitives/PublicAPI/net10.0-macos/PublicAPI.txt b/src/ReactiveUI.Primitives/PublicAPI/net10.0-macos/PublicAPI.txt index 6789054a..f1f7956b 100644 --- a/src/ReactiveUI.Primitives/PublicAPI/net10.0-macos/PublicAPI.txt +++ b/src/ReactiveUI.Primitives/PublicAPI/net10.0-macos/PublicAPI.txt @@ -49,26 +49,20 @@ namespace ReactiveUI.Primitives [System.Runtime.CompilerServices.OverloadResolutionPriority(-2)] public static System.IObservable> CombineLatest(params System.IObservable[] sources) { } [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] - public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onError, params byte[] allowValueType) where T : struct { } + public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onNext, params byte[] allowValueType) where T : struct { } [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] public static System.IDisposable SubscribeSafe(System.IObservable source, System.IObserver observer, params byte[] allowValueType) where T : struct { } [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] - public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onError, params bool[] allowNullable) where T : struct { } + public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onNext, params bool[] allowNullable) where T : class { } [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] - public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onError, params bool[] allowNullable) where T : class { } + public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onNext, params bool[] allowNullable) where T : struct { } [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] public static System.IDisposable SubscribeSafe(System.IObservable source, System.IObserver observer, params bool[] allowNullable) where T : class { } [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] public static System.IDisposable SubscribeSafe(System.IObservable source, System.IObserver observer, params bool[] allowNullable) where T : struct { } [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] - public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onError, System.Action onCompleted, params byte[] allowValueType) where T : struct { } - [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onNext, System.Action onError, params byte[] allowValueType) where T : struct { } [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] - public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onError, System.Action onCompleted, params bool[] allowNullable) where T : class { } - [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] - public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onError, System.Action onCompleted, params bool[] allowNullable) where T : struct { } - [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onNext, System.Action onError, params bool[] allowNullable) where T : class { } [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onNext, System.Action onError, params bool[] allowNullable) where T : struct { } @@ -78,6 +72,18 @@ namespace ReactiveUI.Primitives public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onNext, System.Action onError, System.Action onCompleted, params bool[] allowNullable) where T : class { } [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onNext, System.Action onError, System.Action onCompleted, params bool[] allowNullable) where T : struct { } + [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] + public static System.IDisposable SubscribeSafeErrors(System.IObservable source, System.Action onError, params byte[] allowValueType) where T : struct { } + [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] + public static System.IDisposable SubscribeSafeErrors(System.IObservable source, System.Action onError, params bool[] allowNullable) where T : class { } + [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] + public static System.IDisposable SubscribeSafeErrors(System.IObservable source, System.Action onError, params bool[] allowNullable) where T : struct { } + [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] + public static System.IDisposable SubscribeSafeErrors(System.IObservable source, System.Action onError, System.Action onCompleted, params byte[] allowValueType) where T : struct { } + [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] + public static System.IDisposable SubscribeSafeErrors(System.IObservable source, System.Action onError, System.Action onCompleted, params bool[] allowNullable) where T : class { } + [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] + public static System.IDisposable SubscribeSafeErrors(System.IObservable source, System.Action onError, System.Action onCompleted, params bool[] allowNullable) where T : struct { } extension(System.IDisposable disposable) { public ReactiveUI.Primitives.Disposables.SingleDisposable DisposeWith() { } @@ -184,16 +190,18 @@ namespace ReactiveUI.Primitives public System.IObservable StartWith(System.Collections.Generic.IEnumerable values) { } public System.IObservable StartWith(params T[] values) { } [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] - public System.IDisposable SubscribeSafe(System.Action onError) { } + public System.IDisposable SubscribeSafe(System.Action onNext) { } [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] public System.IDisposable SubscribeSafe(System.IObserver observer) { } [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] - public System.IDisposable SubscribeSafe(System.Action onError, System.Action onCompleted) { } - [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] public System.IDisposable SubscribeSafe(System.Action onNext, System.Action onError) { } [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] public System.IDisposable SubscribeSafe(System.Action onNext, System.Action onError, System.Action onCompleted) { } [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] + public System.IDisposable SubscribeSafeErrors(System.Action onError) { } + [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] + public System.IDisposable SubscribeSafeErrors(System.Action onError, System.Action onCompleted) { } + [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] public System.IDisposable SubscribeSafePrimitives(System.IObserver observer) { } public System.IObservable Synchronize() { } public System.IObservable Synchronize(System.Threading.Lock gate) { } diff --git a/src/ReactiveUI.Primitives/PublicAPI/net10.0-tvos/PublicAPI.txt b/src/ReactiveUI.Primitives/PublicAPI/net10.0-tvos/PublicAPI.txt index 166131bc..8ea803ce 100644 --- a/src/ReactiveUI.Primitives/PublicAPI/net10.0-tvos/PublicAPI.txt +++ b/src/ReactiveUI.Primitives/PublicAPI/net10.0-tvos/PublicAPI.txt @@ -49,26 +49,20 @@ namespace ReactiveUI.Primitives [System.Runtime.CompilerServices.OverloadResolutionPriority(-2)] public static System.IObservable> CombineLatest(params System.IObservable[] sources) { } [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] - public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onError, params byte[] allowValueType) where T : struct { } + public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onNext, params byte[] allowValueType) where T : struct { } [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] public static System.IDisposable SubscribeSafe(System.IObservable source, System.IObserver observer, params byte[] allowValueType) where T : struct { } [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] - public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onError, params bool[] allowNullable) where T : struct { } + public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onNext, params bool[] allowNullable) where T : class { } [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] - public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onError, params bool[] allowNullable) where T : class { } + public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onNext, params bool[] allowNullable) where T : struct { } [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] public static System.IDisposable SubscribeSafe(System.IObservable source, System.IObserver observer, params bool[] allowNullable) where T : class { } [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] public static System.IDisposable SubscribeSafe(System.IObservable source, System.IObserver observer, params bool[] allowNullable) where T : struct { } [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] - public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onError, System.Action onCompleted, params byte[] allowValueType) where T : struct { } - [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onNext, System.Action onError, params byte[] allowValueType) where T : struct { } [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] - public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onError, System.Action onCompleted, params bool[] allowNullable) where T : class { } - [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] - public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onError, System.Action onCompleted, params bool[] allowNullable) where T : struct { } - [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onNext, System.Action onError, params bool[] allowNullable) where T : class { } [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onNext, System.Action onError, params bool[] allowNullable) where T : struct { } @@ -78,6 +72,18 @@ namespace ReactiveUI.Primitives public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onNext, System.Action onError, System.Action onCompleted, params bool[] allowNullable) where T : class { } [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onNext, System.Action onError, System.Action onCompleted, params bool[] allowNullable) where T : struct { } + [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] + public static System.IDisposable SubscribeSafeErrors(System.IObservable source, System.Action onError, params byte[] allowValueType) where T : struct { } + [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] + public static System.IDisposable SubscribeSafeErrors(System.IObservable source, System.Action onError, params bool[] allowNullable) where T : class { } + [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] + public static System.IDisposable SubscribeSafeErrors(System.IObservable source, System.Action onError, params bool[] allowNullable) where T : struct { } + [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] + public static System.IDisposable SubscribeSafeErrors(System.IObservable source, System.Action onError, System.Action onCompleted, params byte[] allowValueType) where T : struct { } + [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] + public static System.IDisposable SubscribeSafeErrors(System.IObservable source, System.Action onError, System.Action onCompleted, params bool[] allowNullable) where T : class { } + [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] + public static System.IDisposable SubscribeSafeErrors(System.IObservable source, System.Action onError, System.Action onCompleted, params bool[] allowNullable) where T : struct { } extension(System.IDisposable disposable) { public ReactiveUI.Primitives.Disposables.SingleDisposable DisposeWith() { } @@ -184,16 +190,18 @@ namespace ReactiveUI.Primitives public System.IObservable StartWith(System.Collections.Generic.IEnumerable values) { } public System.IObservable StartWith(params T[] values) { } [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] - public System.IDisposable SubscribeSafe(System.Action onError) { } + public System.IDisposable SubscribeSafe(System.Action onNext) { } [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] public System.IDisposable SubscribeSafe(System.IObserver observer) { } [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] - public System.IDisposable SubscribeSafe(System.Action onError, System.Action onCompleted) { } - [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] public System.IDisposable SubscribeSafe(System.Action onNext, System.Action onError) { } [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] public System.IDisposable SubscribeSafe(System.Action onNext, System.Action onError, System.Action onCompleted) { } [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] + public System.IDisposable SubscribeSafeErrors(System.Action onError) { } + [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] + public System.IDisposable SubscribeSafeErrors(System.Action onError, System.Action onCompleted) { } + [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] public System.IDisposable SubscribeSafePrimitives(System.IObserver observer) { } public System.IObservable Synchronize() { } public System.IObservable Synchronize(System.Threading.Lock gate) { } diff --git a/src/ReactiveUI.Primitives/PublicAPI/net10.0/PublicAPI.txt b/src/ReactiveUI.Primitives/PublicAPI/net10.0/PublicAPI.txt index cc953984..16b5ec37 100644 --- a/src/ReactiveUI.Primitives/PublicAPI/net10.0/PublicAPI.txt +++ b/src/ReactiveUI.Primitives/PublicAPI/net10.0/PublicAPI.txt @@ -48,26 +48,20 @@ namespace ReactiveUI.Primitives [System.Runtime.CompilerServices.OverloadResolutionPriority(-2)] public static System.IObservable> CombineLatest(params System.IObservable[] sources) { } [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] - public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onError, params byte[] allowValueType) where T : struct { } + public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onNext, params byte[] allowValueType) where T : struct { } [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] public static System.IDisposable SubscribeSafe(System.IObservable source, System.IObserver observer, params byte[] allowValueType) where T : struct { } [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] - public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onError, params bool[] allowNullable) where T : struct { } + public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onNext, params bool[] allowNullable) where T : class { } [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] - public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onError, params bool[] allowNullable) where T : class { } + public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onNext, params bool[] allowNullable) where T : struct { } [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] public static System.IDisposable SubscribeSafe(System.IObservable source, System.IObserver observer, params bool[] allowNullable) where T : class { } [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] public static System.IDisposable SubscribeSafe(System.IObservable source, System.IObserver observer, params bool[] allowNullable) where T : struct { } [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] - public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onError, System.Action onCompleted, params byte[] allowValueType) where T : struct { } - [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onNext, System.Action onError, params byte[] allowValueType) where T : struct { } [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] - public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onError, System.Action onCompleted, params bool[] allowNullable) where T : class { } - [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] - public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onError, System.Action onCompleted, params bool[] allowNullable) where T : struct { } - [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onNext, System.Action onError, params bool[] allowNullable) where T : class { } [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onNext, System.Action onError, params bool[] allowNullable) where T : struct { } @@ -77,6 +71,18 @@ namespace ReactiveUI.Primitives public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onNext, System.Action onError, System.Action onCompleted, params bool[] allowNullable) where T : class { } [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onNext, System.Action onError, System.Action onCompleted, params bool[] allowNullable) where T : struct { } + [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] + public static System.IDisposable SubscribeSafeErrors(System.IObservable source, System.Action onError, params byte[] allowValueType) where T : struct { } + [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] + public static System.IDisposable SubscribeSafeErrors(System.IObservable source, System.Action onError, params bool[] allowNullable) where T : class { } + [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] + public static System.IDisposable SubscribeSafeErrors(System.IObservable source, System.Action onError, params bool[] allowNullable) where T : struct { } + [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] + public static System.IDisposable SubscribeSafeErrors(System.IObservable source, System.Action onError, System.Action onCompleted, params byte[] allowValueType) where T : struct { } + [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] + public static System.IDisposable SubscribeSafeErrors(System.IObservable source, System.Action onError, System.Action onCompleted, params bool[] allowNullable) where T : class { } + [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] + public static System.IDisposable SubscribeSafeErrors(System.IObservable source, System.Action onError, System.Action onCompleted, params bool[] allowNullable) where T : struct { } extension(System.IDisposable disposable) { public ReactiveUI.Primitives.Disposables.SingleDisposable DisposeWith() { } @@ -183,16 +189,18 @@ namespace ReactiveUI.Primitives public System.IObservable StartWith(System.Collections.Generic.IEnumerable values) { } public System.IObservable StartWith(params T[] values) { } [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] - public System.IDisposable SubscribeSafe(System.Action onError) { } + public System.IDisposable SubscribeSafe(System.Action onNext) { } [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] public System.IDisposable SubscribeSafe(System.IObserver observer) { } [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] - public System.IDisposable SubscribeSafe(System.Action onError, System.Action onCompleted) { } - [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] public System.IDisposable SubscribeSafe(System.Action onNext, System.Action onError) { } [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] public System.IDisposable SubscribeSafe(System.Action onNext, System.Action onError, System.Action onCompleted) { } [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] + public System.IDisposable SubscribeSafeErrors(System.Action onError) { } + [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] + public System.IDisposable SubscribeSafeErrors(System.Action onError, System.Action onCompleted) { } + [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] public System.IDisposable SubscribeSafePrimitives(System.IObserver observer) { } public System.IObservable Synchronize() { } public System.IObservable Synchronize(System.Threading.Lock gate) { } diff --git a/src/ReactiveUI.Primitives/PublicAPI/net11.0-android/PublicAPI.txt b/src/ReactiveUI.Primitives/PublicAPI/net11.0-android/PublicAPI.txt index 63ab6113..8db31d5c 100644 --- a/src/ReactiveUI.Primitives/PublicAPI/net11.0-android/PublicAPI.txt +++ b/src/ReactiveUI.Primitives/PublicAPI/net11.0-android/PublicAPI.txt @@ -49,26 +49,20 @@ namespace ReactiveUI.Primitives [System.Runtime.CompilerServices.OverloadResolutionPriority(-2)] public static System.IObservable> CombineLatest(params System.IObservable[] sources) { } [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] - public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onError, params byte[] allowValueType) where T : struct { } + public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onNext, params byte[] allowValueType) where T : struct { } [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] public static System.IDisposable SubscribeSafe(System.IObservable source, System.IObserver observer, params byte[] allowValueType) where T : struct { } [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] - public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onError, params bool[] allowNullable) where T : struct { } + public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onNext, params bool[] allowNullable) where T : class { } [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] - public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onError, params bool[] allowNullable) where T : class { } + public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onNext, params bool[] allowNullable) where T : struct { } [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] public static System.IDisposable SubscribeSafe(System.IObservable source, System.IObserver observer, params bool[] allowNullable) where T : class { } [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] public static System.IDisposable SubscribeSafe(System.IObservable source, System.IObserver observer, params bool[] allowNullable) where T : struct { } [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] - public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onError, System.Action onCompleted, params byte[] allowValueType) where T : struct { } - [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onNext, System.Action onError, params byte[] allowValueType) where T : struct { } [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] - public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onError, System.Action onCompleted, params bool[] allowNullable) where T : class { } - [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] - public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onError, System.Action onCompleted, params bool[] allowNullable) where T : struct { } - [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onNext, System.Action onError, params bool[] allowNullable) where T : class { } [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onNext, System.Action onError, params bool[] allowNullable) where T : struct { } @@ -78,6 +72,18 @@ namespace ReactiveUI.Primitives public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onNext, System.Action onError, System.Action onCompleted, params bool[] allowNullable) where T : class { } [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onNext, System.Action onError, System.Action onCompleted, params bool[] allowNullable) where T : struct { } + [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] + public static System.IDisposable SubscribeSafeErrors(System.IObservable source, System.Action onError, params byte[] allowValueType) where T : struct { } + [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] + public static System.IDisposable SubscribeSafeErrors(System.IObservable source, System.Action onError, params bool[] allowNullable) where T : class { } + [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] + public static System.IDisposable SubscribeSafeErrors(System.IObservable source, System.Action onError, params bool[] allowNullable) where T : struct { } + [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] + public static System.IDisposable SubscribeSafeErrors(System.IObservable source, System.Action onError, System.Action onCompleted, params byte[] allowValueType) where T : struct { } + [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] + public static System.IDisposable SubscribeSafeErrors(System.IObservable source, System.Action onError, System.Action onCompleted, params bool[] allowNullable) where T : class { } + [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] + public static System.IDisposable SubscribeSafeErrors(System.IObservable source, System.Action onError, System.Action onCompleted, params bool[] allowNullable) where T : struct { } extension(System.IDisposable disposable) { public ReactiveUI.Primitives.Disposables.SingleDisposable DisposeWith() { } @@ -184,16 +190,18 @@ namespace ReactiveUI.Primitives public System.IObservable StartWith(System.Collections.Generic.IEnumerable values) { } public System.IObservable StartWith(params T[] values) { } [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] - public System.IDisposable SubscribeSafe(System.Action onError) { } + public System.IDisposable SubscribeSafe(System.Action onNext) { } [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] public System.IDisposable SubscribeSafe(System.IObserver observer) { } [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] - public System.IDisposable SubscribeSafe(System.Action onError, System.Action onCompleted) { } - [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] public System.IDisposable SubscribeSafe(System.Action onNext, System.Action onError) { } [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] public System.IDisposable SubscribeSafe(System.Action onNext, System.Action onError, System.Action onCompleted) { } [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] + public System.IDisposable SubscribeSafeErrors(System.Action onError) { } + [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] + public System.IDisposable SubscribeSafeErrors(System.Action onError, System.Action onCompleted) { } + [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] public System.IDisposable SubscribeSafePrimitives(System.IObserver observer) { } public System.IObservable Synchronize() { } public System.IObservable Synchronize(System.Threading.Lock gate) { } diff --git a/src/ReactiveUI.Primitives/PublicAPI/net11.0-ios/PublicAPI.txt b/src/ReactiveUI.Primitives/PublicAPI/net11.0-ios/PublicAPI.txt index 2cd8c13e..1cc237a7 100644 --- a/src/ReactiveUI.Primitives/PublicAPI/net11.0-ios/PublicAPI.txt +++ b/src/ReactiveUI.Primitives/PublicAPI/net11.0-ios/PublicAPI.txt @@ -49,26 +49,20 @@ namespace ReactiveUI.Primitives [System.Runtime.CompilerServices.OverloadResolutionPriority(-2)] public static System.IObservable> CombineLatest(params System.IObservable[] sources) { } [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] - public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onError, params byte[] allowValueType) where T : struct { } + public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onNext, params byte[] allowValueType) where T : struct { } [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] public static System.IDisposable SubscribeSafe(System.IObservable source, System.IObserver observer, params byte[] allowValueType) where T : struct { } [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] - public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onError, params bool[] allowNullable) where T : struct { } + public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onNext, params bool[] allowNullable) where T : class { } [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] - public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onError, params bool[] allowNullable) where T : class { } + public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onNext, params bool[] allowNullable) where T : struct { } [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] public static System.IDisposable SubscribeSafe(System.IObservable source, System.IObserver observer, params bool[] allowNullable) where T : class { } [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] public static System.IDisposable SubscribeSafe(System.IObservable source, System.IObserver observer, params bool[] allowNullable) where T : struct { } [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] - public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onError, System.Action onCompleted, params byte[] allowValueType) where T : struct { } - [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onNext, System.Action onError, params byte[] allowValueType) where T : struct { } [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] - public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onError, System.Action onCompleted, params bool[] allowNullable) where T : class { } - [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] - public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onError, System.Action onCompleted, params bool[] allowNullable) where T : struct { } - [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onNext, System.Action onError, params bool[] allowNullable) where T : class { } [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onNext, System.Action onError, params bool[] allowNullable) where T : struct { } @@ -78,6 +72,18 @@ namespace ReactiveUI.Primitives public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onNext, System.Action onError, System.Action onCompleted, params bool[] allowNullable) where T : class { } [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onNext, System.Action onError, System.Action onCompleted, params bool[] allowNullable) where T : struct { } + [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] + public static System.IDisposable SubscribeSafeErrors(System.IObservable source, System.Action onError, params byte[] allowValueType) where T : struct { } + [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] + public static System.IDisposable SubscribeSafeErrors(System.IObservable source, System.Action onError, params bool[] allowNullable) where T : class { } + [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] + public static System.IDisposable SubscribeSafeErrors(System.IObservable source, System.Action onError, params bool[] allowNullable) where T : struct { } + [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] + public static System.IDisposable SubscribeSafeErrors(System.IObservable source, System.Action onError, System.Action onCompleted, params byte[] allowValueType) where T : struct { } + [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] + public static System.IDisposable SubscribeSafeErrors(System.IObservable source, System.Action onError, System.Action onCompleted, params bool[] allowNullable) where T : class { } + [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] + public static System.IDisposable SubscribeSafeErrors(System.IObservable source, System.Action onError, System.Action onCompleted, params bool[] allowNullable) where T : struct { } extension(System.IDisposable disposable) { public ReactiveUI.Primitives.Disposables.SingleDisposable DisposeWith() { } @@ -184,16 +190,18 @@ namespace ReactiveUI.Primitives public System.IObservable StartWith(System.Collections.Generic.IEnumerable values) { } public System.IObservable StartWith(params T[] values) { } [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] - public System.IDisposable SubscribeSafe(System.Action onError) { } + public System.IDisposable SubscribeSafe(System.Action onNext) { } [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] public System.IDisposable SubscribeSafe(System.IObserver observer) { } [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] - public System.IDisposable SubscribeSafe(System.Action onError, System.Action onCompleted) { } - [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] public System.IDisposable SubscribeSafe(System.Action onNext, System.Action onError) { } [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] public System.IDisposable SubscribeSafe(System.Action onNext, System.Action onError, System.Action onCompleted) { } [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] + public System.IDisposable SubscribeSafeErrors(System.Action onError) { } + [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] + public System.IDisposable SubscribeSafeErrors(System.Action onError, System.Action onCompleted) { } + [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] public System.IDisposable SubscribeSafePrimitives(System.IObserver observer) { } public System.IObservable Synchronize() { } public System.IObservable Synchronize(System.Threading.Lock gate) { } diff --git a/src/ReactiveUI.Primitives/PublicAPI/net11.0-maccatalyst/PublicAPI.txt b/src/ReactiveUI.Primitives/PublicAPI/net11.0-maccatalyst/PublicAPI.txt index be40c9dd..fa2f67bc 100644 --- a/src/ReactiveUI.Primitives/PublicAPI/net11.0-maccatalyst/PublicAPI.txt +++ b/src/ReactiveUI.Primitives/PublicAPI/net11.0-maccatalyst/PublicAPI.txt @@ -49,26 +49,20 @@ namespace ReactiveUI.Primitives [System.Runtime.CompilerServices.OverloadResolutionPriority(-2)] public static System.IObservable> CombineLatest(params System.IObservable[] sources) { } [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] - public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onError, params byte[] allowValueType) where T : struct { } + public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onNext, params byte[] allowValueType) where T : struct { } [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] public static System.IDisposable SubscribeSafe(System.IObservable source, System.IObserver observer, params byte[] allowValueType) where T : struct { } [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] - public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onError, params bool[] allowNullable) where T : struct { } + public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onNext, params bool[] allowNullable) where T : class { } [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] - public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onError, params bool[] allowNullable) where T : class { } + public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onNext, params bool[] allowNullable) where T : struct { } [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] public static System.IDisposable SubscribeSafe(System.IObservable source, System.IObserver observer, params bool[] allowNullable) where T : class { } [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] public static System.IDisposable SubscribeSafe(System.IObservable source, System.IObserver observer, params bool[] allowNullable) where T : struct { } [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] - public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onError, System.Action onCompleted, params byte[] allowValueType) where T : struct { } - [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onNext, System.Action onError, params byte[] allowValueType) where T : struct { } [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] - public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onError, System.Action onCompleted, params bool[] allowNullable) where T : class { } - [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] - public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onError, System.Action onCompleted, params bool[] allowNullable) where T : struct { } - [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onNext, System.Action onError, params bool[] allowNullable) where T : class { } [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onNext, System.Action onError, params bool[] allowNullable) where T : struct { } @@ -78,6 +72,18 @@ namespace ReactiveUI.Primitives public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onNext, System.Action onError, System.Action onCompleted, params bool[] allowNullable) where T : class { } [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onNext, System.Action onError, System.Action onCompleted, params bool[] allowNullable) where T : struct { } + [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] + public static System.IDisposable SubscribeSafeErrors(System.IObservable source, System.Action onError, params byte[] allowValueType) where T : struct { } + [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] + public static System.IDisposable SubscribeSafeErrors(System.IObservable source, System.Action onError, params bool[] allowNullable) where T : class { } + [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] + public static System.IDisposable SubscribeSafeErrors(System.IObservable source, System.Action onError, params bool[] allowNullable) where T : struct { } + [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] + public static System.IDisposable SubscribeSafeErrors(System.IObservable source, System.Action onError, System.Action onCompleted, params byte[] allowValueType) where T : struct { } + [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] + public static System.IDisposable SubscribeSafeErrors(System.IObservable source, System.Action onError, System.Action onCompleted, params bool[] allowNullable) where T : class { } + [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] + public static System.IDisposable SubscribeSafeErrors(System.IObservable source, System.Action onError, System.Action onCompleted, params bool[] allowNullable) where T : struct { } extension(System.IDisposable disposable) { public ReactiveUI.Primitives.Disposables.SingleDisposable DisposeWith() { } @@ -184,16 +190,18 @@ namespace ReactiveUI.Primitives public System.IObservable StartWith(System.Collections.Generic.IEnumerable values) { } public System.IObservable StartWith(params T[] values) { } [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] - public System.IDisposable SubscribeSafe(System.Action onError) { } + public System.IDisposable SubscribeSafe(System.Action onNext) { } [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] public System.IDisposable SubscribeSafe(System.IObserver observer) { } [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] - public System.IDisposable SubscribeSafe(System.Action onError, System.Action onCompleted) { } - [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] public System.IDisposable SubscribeSafe(System.Action onNext, System.Action onError) { } [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] public System.IDisposable SubscribeSafe(System.Action onNext, System.Action onError, System.Action onCompleted) { } [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] + public System.IDisposable SubscribeSafeErrors(System.Action onError) { } + [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] + public System.IDisposable SubscribeSafeErrors(System.Action onError, System.Action onCompleted) { } + [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] public System.IDisposable SubscribeSafePrimitives(System.IObserver observer) { } public System.IObservable Synchronize() { } public System.IObservable Synchronize(System.Threading.Lock gate) { } diff --git a/src/ReactiveUI.Primitives/PublicAPI/net11.0-macos/PublicAPI.txt b/src/ReactiveUI.Primitives/PublicAPI/net11.0-macos/PublicAPI.txt index 6789054a..f1f7956b 100644 --- a/src/ReactiveUI.Primitives/PublicAPI/net11.0-macos/PublicAPI.txt +++ b/src/ReactiveUI.Primitives/PublicAPI/net11.0-macos/PublicAPI.txt @@ -49,26 +49,20 @@ namespace ReactiveUI.Primitives [System.Runtime.CompilerServices.OverloadResolutionPriority(-2)] public static System.IObservable> CombineLatest(params System.IObservable[] sources) { } [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] - public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onError, params byte[] allowValueType) where T : struct { } + public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onNext, params byte[] allowValueType) where T : struct { } [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] public static System.IDisposable SubscribeSafe(System.IObservable source, System.IObserver observer, params byte[] allowValueType) where T : struct { } [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] - public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onError, params bool[] allowNullable) where T : struct { } + public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onNext, params bool[] allowNullable) where T : class { } [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] - public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onError, params bool[] allowNullable) where T : class { } + public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onNext, params bool[] allowNullable) where T : struct { } [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] public static System.IDisposable SubscribeSafe(System.IObservable source, System.IObserver observer, params bool[] allowNullable) where T : class { } [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] public static System.IDisposable SubscribeSafe(System.IObservable source, System.IObserver observer, params bool[] allowNullable) where T : struct { } [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] - public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onError, System.Action onCompleted, params byte[] allowValueType) where T : struct { } - [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onNext, System.Action onError, params byte[] allowValueType) where T : struct { } [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] - public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onError, System.Action onCompleted, params bool[] allowNullable) where T : class { } - [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] - public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onError, System.Action onCompleted, params bool[] allowNullable) where T : struct { } - [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onNext, System.Action onError, params bool[] allowNullable) where T : class { } [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onNext, System.Action onError, params bool[] allowNullable) where T : struct { } @@ -78,6 +72,18 @@ namespace ReactiveUI.Primitives public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onNext, System.Action onError, System.Action onCompleted, params bool[] allowNullable) where T : class { } [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onNext, System.Action onError, System.Action onCompleted, params bool[] allowNullable) where T : struct { } + [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] + public static System.IDisposable SubscribeSafeErrors(System.IObservable source, System.Action onError, params byte[] allowValueType) where T : struct { } + [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] + public static System.IDisposable SubscribeSafeErrors(System.IObservable source, System.Action onError, params bool[] allowNullable) where T : class { } + [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] + public static System.IDisposable SubscribeSafeErrors(System.IObservable source, System.Action onError, params bool[] allowNullable) where T : struct { } + [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] + public static System.IDisposable SubscribeSafeErrors(System.IObservable source, System.Action onError, System.Action onCompleted, params byte[] allowValueType) where T : struct { } + [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] + public static System.IDisposable SubscribeSafeErrors(System.IObservable source, System.Action onError, System.Action onCompleted, params bool[] allowNullable) where T : class { } + [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] + public static System.IDisposable SubscribeSafeErrors(System.IObservable source, System.Action onError, System.Action onCompleted, params bool[] allowNullable) where T : struct { } extension(System.IDisposable disposable) { public ReactiveUI.Primitives.Disposables.SingleDisposable DisposeWith() { } @@ -184,16 +190,18 @@ namespace ReactiveUI.Primitives public System.IObservable StartWith(System.Collections.Generic.IEnumerable values) { } public System.IObservable StartWith(params T[] values) { } [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] - public System.IDisposable SubscribeSafe(System.Action onError) { } + public System.IDisposable SubscribeSafe(System.Action onNext) { } [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] public System.IDisposable SubscribeSafe(System.IObserver observer) { } [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] - public System.IDisposable SubscribeSafe(System.Action onError, System.Action onCompleted) { } - [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] public System.IDisposable SubscribeSafe(System.Action onNext, System.Action onError) { } [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] public System.IDisposable SubscribeSafe(System.Action onNext, System.Action onError, System.Action onCompleted) { } [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] + public System.IDisposable SubscribeSafeErrors(System.Action onError) { } + [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] + public System.IDisposable SubscribeSafeErrors(System.Action onError, System.Action onCompleted) { } + [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] public System.IDisposable SubscribeSafePrimitives(System.IObserver observer) { } public System.IObservable Synchronize() { } public System.IObservable Synchronize(System.Threading.Lock gate) { } diff --git a/src/ReactiveUI.Primitives/PublicAPI/net11.0-tvos/PublicAPI.txt b/src/ReactiveUI.Primitives/PublicAPI/net11.0-tvos/PublicAPI.txt index 166131bc..8ea803ce 100644 --- a/src/ReactiveUI.Primitives/PublicAPI/net11.0-tvos/PublicAPI.txt +++ b/src/ReactiveUI.Primitives/PublicAPI/net11.0-tvos/PublicAPI.txt @@ -49,26 +49,20 @@ namespace ReactiveUI.Primitives [System.Runtime.CompilerServices.OverloadResolutionPriority(-2)] public static System.IObservable> CombineLatest(params System.IObservable[] sources) { } [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] - public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onError, params byte[] allowValueType) where T : struct { } + public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onNext, params byte[] allowValueType) where T : struct { } [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] public static System.IDisposable SubscribeSafe(System.IObservable source, System.IObserver observer, params byte[] allowValueType) where T : struct { } [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] - public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onError, params bool[] allowNullable) where T : struct { } + public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onNext, params bool[] allowNullable) where T : class { } [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] - public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onError, params bool[] allowNullable) where T : class { } + public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onNext, params bool[] allowNullable) where T : struct { } [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] public static System.IDisposable SubscribeSafe(System.IObservable source, System.IObserver observer, params bool[] allowNullable) where T : class { } [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] public static System.IDisposable SubscribeSafe(System.IObservable source, System.IObserver observer, params bool[] allowNullable) where T : struct { } [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] - public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onError, System.Action onCompleted, params byte[] allowValueType) where T : struct { } - [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onNext, System.Action onError, params byte[] allowValueType) where T : struct { } [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] - public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onError, System.Action onCompleted, params bool[] allowNullable) where T : class { } - [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] - public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onError, System.Action onCompleted, params bool[] allowNullable) where T : struct { } - [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onNext, System.Action onError, params bool[] allowNullable) where T : class { } [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onNext, System.Action onError, params bool[] allowNullable) where T : struct { } @@ -78,6 +72,18 @@ namespace ReactiveUI.Primitives public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onNext, System.Action onError, System.Action onCompleted, params bool[] allowNullable) where T : class { } [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onNext, System.Action onError, System.Action onCompleted, params bool[] allowNullable) where T : struct { } + [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] + public static System.IDisposable SubscribeSafeErrors(System.IObservable source, System.Action onError, params byte[] allowValueType) where T : struct { } + [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] + public static System.IDisposable SubscribeSafeErrors(System.IObservable source, System.Action onError, params bool[] allowNullable) where T : class { } + [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] + public static System.IDisposable SubscribeSafeErrors(System.IObservable source, System.Action onError, params bool[] allowNullable) where T : struct { } + [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] + public static System.IDisposable SubscribeSafeErrors(System.IObservable source, System.Action onError, System.Action onCompleted, params byte[] allowValueType) where T : struct { } + [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] + public static System.IDisposable SubscribeSafeErrors(System.IObservable source, System.Action onError, System.Action onCompleted, params bool[] allowNullable) where T : class { } + [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] + public static System.IDisposable SubscribeSafeErrors(System.IObservable source, System.Action onError, System.Action onCompleted, params bool[] allowNullable) where T : struct { } extension(System.IDisposable disposable) { public ReactiveUI.Primitives.Disposables.SingleDisposable DisposeWith() { } @@ -184,16 +190,18 @@ namespace ReactiveUI.Primitives public System.IObservable StartWith(System.Collections.Generic.IEnumerable values) { } public System.IObservable StartWith(params T[] values) { } [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] - public System.IDisposable SubscribeSafe(System.Action onError) { } + public System.IDisposable SubscribeSafe(System.Action onNext) { } [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] public System.IDisposable SubscribeSafe(System.IObserver observer) { } [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] - public System.IDisposable SubscribeSafe(System.Action onError, System.Action onCompleted) { } - [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] public System.IDisposable SubscribeSafe(System.Action onNext, System.Action onError) { } [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] public System.IDisposable SubscribeSafe(System.Action onNext, System.Action onError, System.Action onCompleted) { } [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] + public System.IDisposable SubscribeSafeErrors(System.Action onError) { } + [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] + public System.IDisposable SubscribeSafeErrors(System.Action onError, System.Action onCompleted) { } + [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] public System.IDisposable SubscribeSafePrimitives(System.IObserver observer) { } public System.IObservable Synchronize() { } public System.IObservable Synchronize(System.Threading.Lock gate) { } diff --git a/src/ReactiveUI.Primitives/PublicAPI/net11.0/PublicAPI.txt b/src/ReactiveUI.Primitives/PublicAPI/net11.0/PublicAPI.txt index cc953984..16b5ec37 100644 --- a/src/ReactiveUI.Primitives/PublicAPI/net11.0/PublicAPI.txt +++ b/src/ReactiveUI.Primitives/PublicAPI/net11.0/PublicAPI.txt @@ -48,26 +48,20 @@ namespace ReactiveUI.Primitives [System.Runtime.CompilerServices.OverloadResolutionPriority(-2)] public static System.IObservable> CombineLatest(params System.IObservable[] sources) { } [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] - public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onError, params byte[] allowValueType) where T : struct { } + public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onNext, params byte[] allowValueType) where T : struct { } [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] public static System.IDisposable SubscribeSafe(System.IObservable source, System.IObserver observer, params byte[] allowValueType) where T : struct { } [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] - public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onError, params bool[] allowNullable) where T : struct { } + public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onNext, params bool[] allowNullable) where T : class { } [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] - public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onError, params bool[] allowNullable) where T : class { } + public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onNext, params bool[] allowNullable) where T : struct { } [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] public static System.IDisposable SubscribeSafe(System.IObservable source, System.IObserver observer, params bool[] allowNullable) where T : class { } [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] public static System.IDisposable SubscribeSafe(System.IObservable source, System.IObserver observer, params bool[] allowNullable) where T : struct { } [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] - public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onError, System.Action onCompleted, params byte[] allowValueType) where T : struct { } - [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onNext, System.Action onError, params byte[] allowValueType) where T : struct { } [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] - public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onError, System.Action onCompleted, params bool[] allowNullable) where T : class { } - [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] - public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onError, System.Action onCompleted, params bool[] allowNullable) where T : struct { } - [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onNext, System.Action onError, params bool[] allowNullable) where T : class { } [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onNext, System.Action onError, params bool[] allowNullable) where T : struct { } @@ -77,6 +71,18 @@ namespace ReactiveUI.Primitives public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onNext, System.Action onError, System.Action onCompleted, params bool[] allowNullable) where T : class { } [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onNext, System.Action onError, System.Action onCompleted, params bool[] allowNullable) where T : struct { } + [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] + public static System.IDisposable SubscribeSafeErrors(System.IObservable source, System.Action onError, params byte[] allowValueType) where T : struct { } + [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] + public static System.IDisposable SubscribeSafeErrors(System.IObservable source, System.Action onError, params bool[] allowNullable) where T : class { } + [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] + public static System.IDisposable SubscribeSafeErrors(System.IObservable source, System.Action onError, params bool[] allowNullable) where T : struct { } + [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] + public static System.IDisposable SubscribeSafeErrors(System.IObservable source, System.Action onError, System.Action onCompleted, params byte[] allowValueType) where T : struct { } + [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] + public static System.IDisposable SubscribeSafeErrors(System.IObservable source, System.Action onError, System.Action onCompleted, params bool[] allowNullable) where T : class { } + [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] + public static System.IDisposable SubscribeSafeErrors(System.IObservable source, System.Action onError, System.Action onCompleted, params bool[] allowNullable) where T : struct { } extension(System.IDisposable disposable) { public ReactiveUI.Primitives.Disposables.SingleDisposable DisposeWith() { } @@ -183,16 +189,18 @@ namespace ReactiveUI.Primitives public System.IObservable StartWith(System.Collections.Generic.IEnumerable values) { } public System.IObservable StartWith(params T[] values) { } [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] - public System.IDisposable SubscribeSafe(System.Action onError) { } + public System.IDisposable SubscribeSafe(System.Action onNext) { } [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] public System.IDisposable SubscribeSafe(System.IObserver observer) { } [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] - public System.IDisposable SubscribeSafe(System.Action onError, System.Action onCompleted) { } - [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] public System.IDisposable SubscribeSafe(System.Action onNext, System.Action onError) { } [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] public System.IDisposable SubscribeSafe(System.Action onNext, System.Action onError, System.Action onCompleted) { } [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] + public System.IDisposable SubscribeSafeErrors(System.Action onError) { } + [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] + public System.IDisposable SubscribeSafeErrors(System.Action onError, System.Action onCompleted) { } + [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] public System.IDisposable SubscribeSafePrimitives(System.IObserver observer) { } public System.IObservable Synchronize() { } public System.IObservable Synchronize(System.Threading.Lock gate) { } diff --git a/src/ReactiveUI.Primitives/PublicAPI/net462/PublicAPI.txt b/src/ReactiveUI.Primitives/PublicAPI/net462/PublicAPI.txt index e3251e17..3526b2aa 100644 --- a/src/ReactiveUI.Primitives/PublicAPI/net462/PublicAPI.txt +++ b/src/ReactiveUI.Primitives/PublicAPI/net462/PublicAPI.txt @@ -46,21 +46,24 @@ namespace ReactiveUI.Primitives public static System.IObservable BlendUnique(System.IObservable[] sources, System.Collections.Generic.IEqualityComparer? comparer) { } [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] public static System.IObservable> CombineLatest(params System.IObservable[] sources) { } - public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onError, params byte[] allowValueType) where T : struct { } + public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onNext, params byte[] allowValueType) where T : struct { } public static System.IDisposable SubscribeSafe(System.IObservable source, System.IObserver observer, params byte[] allowValueType) where T : struct { } - public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onError, params bool[] allowNullable) where T : struct { } - public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onError, params bool[] allowNullable) where T : class { } + public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onNext, params bool[] allowNullable) where T : class { } + public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onNext, params bool[] allowNullable) where T : struct { } public static System.IDisposable SubscribeSafe(System.IObservable source, System.IObserver observer, params bool[] allowNullable) where T : class { } public static System.IDisposable SubscribeSafe(System.IObservable source, System.IObserver observer, params bool[] allowNullable) where T : struct { } - public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onError, System.Action onCompleted, params byte[] allowValueType) where T : struct { } public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onNext, System.Action onError, params byte[] allowValueType) where T : struct { } - public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onError, System.Action onCompleted, params bool[] allowNullable) where T : class { } - public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onError, System.Action onCompleted, params bool[] allowNullable) where T : struct { } public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onNext, System.Action onError, params bool[] allowNullable) where T : class { } public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onNext, System.Action onError, params bool[] allowNullable) where T : struct { } public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onNext, System.Action onError, System.Action onCompleted, params byte[] allowValueType) where T : struct { } public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onNext, System.Action onError, System.Action onCompleted, params bool[] allowNullable) where T : class { } public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onNext, System.Action onError, System.Action onCompleted, params bool[] allowNullable) where T : struct { } + public static System.IDisposable SubscribeSafeErrors(System.IObservable source, System.Action onError, params byte[] allowValueType) where T : struct { } + public static System.IDisposable SubscribeSafeErrors(System.IObservable source, System.Action onError, params bool[] allowNullable) where T : class { } + public static System.IDisposable SubscribeSafeErrors(System.IObservable source, System.Action onError, params bool[] allowNullable) where T : struct { } + public static System.IDisposable SubscribeSafeErrors(System.IObservable source, System.Action onError, System.Action onCompleted, params byte[] allowValueType) where T : struct { } + public static System.IDisposable SubscribeSafeErrors(System.IObservable source, System.Action onError, System.Action onCompleted, params bool[] allowNullable) where T : class { } + public static System.IDisposable SubscribeSafeErrors(System.IObservable source, System.Action onError, System.Action onCompleted, params bool[] allowNullable) where T : struct { } extension(System.IDisposable disposable) { public ReactiveUI.Primitives.Disposables.SingleDisposable DisposeWith() { } @@ -167,16 +170,18 @@ namespace ReactiveUI.Primitives public System.IObservable StartWith(System.Collections.Generic.IEnumerable values) { } public System.IObservable StartWith(params T[] values) { } [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] - public System.IDisposable SubscribeSafe(System.Action onError) { } + public System.IDisposable SubscribeSafe(System.Action onNext) { } [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] public System.IDisposable SubscribeSafe(System.IObserver observer) { } [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] - public System.IDisposable SubscribeSafe(System.Action onError, System.Action onCompleted) { } - [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] public System.IDisposable SubscribeSafe(System.Action onNext, System.Action onError) { } [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] public System.IDisposable SubscribeSafe(System.Action onNext, System.Action onError, System.Action onCompleted) { } [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] + public System.IDisposable SubscribeSafeErrors(System.Action onError) { } + [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] + public System.IDisposable SubscribeSafeErrors(System.Action onError, System.Action onCompleted) { } + [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] public System.IDisposable SubscribeSafePrimitives(System.IObserver observer) { } public System.IObservable Synchronize() { } public System.IObservable Synchronize(object gate) { } diff --git a/src/ReactiveUI.Primitives/PublicAPI/net472/PublicAPI.txt b/src/ReactiveUI.Primitives/PublicAPI/net472/PublicAPI.txt index e3251e17..3526b2aa 100644 --- a/src/ReactiveUI.Primitives/PublicAPI/net472/PublicAPI.txt +++ b/src/ReactiveUI.Primitives/PublicAPI/net472/PublicAPI.txt @@ -46,21 +46,24 @@ namespace ReactiveUI.Primitives public static System.IObservable BlendUnique(System.IObservable[] sources, System.Collections.Generic.IEqualityComparer? comparer) { } [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] public static System.IObservable> CombineLatest(params System.IObservable[] sources) { } - public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onError, params byte[] allowValueType) where T : struct { } + public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onNext, params byte[] allowValueType) where T : struct { } public static System.IDisposable SubscribeSafe(System.IObservable source, System.IObserver observer, params byte[] allowValueType) where T : struct { } - public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onError, params bool[] allowNullable) where T : struct { } - public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onError, params bool[] allowNullable) where T : class { } + public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onNext, params bool[] allowNullable) where T : class { } + public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onNext, params bool[] allowNullable) where T : struct { } public static System.IDisposable SubscribeSafe(System.IObservable source, System.IObserver observer, params bool[] allowNullable) where T : class { } public static System.IDisposable SubscribeSafe(System.IObservable source, System.IObserver observer, params bool[] allowNullable) where T : struct { } - public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onError, System.Action onCompleted, params byte[] allowValueType) where T : struct { } public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onNext, System.Action onError, params byte[] allowValueType) where T : struct { } - public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onError, System.Action onCompleted, params bool[] allowNullable) where T : class { } - public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onError, System.Action onCompleted, params bool[] allowNullable) where T : struct { } public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onNext, System.Action onError, params bool[] allowNullable) where T : class { } public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onNext, System.Action onError, params bool[] allowNullable) where T : struct { } public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onNext, System.Action onError, System.Action onCompleted, params byte[] allowValueType) where T : struct { } public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onNext, System.Action onError, System.Action onCompleted, params bool[] allowNullable) where T : class { } public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onNext, System.Action onError, System.Action onCompleted, params bool[] allowNullable) where T : struct { } + public static System.IDisposable SubscribeSafeErrors(System.IObservable source, System.Action onError, params byte[] allowValueType) where T : struct { } + public static System.IDisposable SubscribeSafeErrors(System.IObservable source, System.Action onError, params bool[] allowNullable) where T : class { } + public static System.IDisposable SubscribeSafeErrors(System.IObservable source, System.Action onError, params bool[] allowNullable) where T : struct { } + public static System.IDisposable SubscribeSafeErrors(System.IObservable source, System.Action onError, System.Action onCompleted, params byte[] allowValueType) where T : struct { } + public static System.IDisposable SubscribeSafeErrors(System.IObservable source, System.Action onError, System.Action onCompleted, params bool[] allowNullable) where T : class { } + public static System.IDisposable SubscribeSafeErrors(System.IObservable source, System.Action onError, System.Action onCompleted, params bool[] allowNullable) where T : struct { } extension(System.IDisposable disposable) { public ReactiveUI.Primitives.Disposables.SingleDisposable DisposeWith() { } @@ -167,16 +170,18 @@ namespace ReactiveUI.Primitives public System.IObservable StartWith(System.Collections.Generic.IEnumerable values) { } public System.IObservable StartWith(params T[] values) { } [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] - public System.IDisposable SubscribeSafe(System.Action onError) { } + public System.IDisposable SubscribeSafe(System.Action onNext) { } [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] public System.IDisposable SubscribeSafe(System.IObserver observer) { } [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] - public System.IDisposable SubscribeSafe(System.Action onError, System.Action onCompleted) { } - [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] public System.IDisposable SubscribeSafe(System.Action onNext, System.Action onError) { } [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] public System.IDisposable SubscribeSafe(System.Action onNext, System.Action onError, System.Action onCompleted) { } [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] + public System.IDisposable SubscribeSafeErrors(System.Action onError) { } + [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] + public System.IDisposable SubscribeSafeErrors(System.Action onError, System.Action onCompleted) { } + [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] public System.IDisposable SubscribeSafePrimitives(System.IObserver observer) { } public System.IObservable Synchronize() { } public System.IObservable Synchronize(object gate) { } diff --git a/src/ReactiveUI.Primitives/PublicAPI/net48/PublicAPI.txt b/src/ReactiveUI.Primitives/PublicAPI/net48/PublicAPI.txt index e3251e17..3526b2aa 100644 --- a/src/ReactiveUI.Primitives/PublicAPI/net48/PublicAPI.txt +++ b/src/ReactiveUI.Primitives/PublicAPI/net48/PublicAPI.txt @@ -46,21 +46,24 @@ namespace ReactiveUI.Primitives public static System.IObservable BlendUnique(System.IObservable[] sources, System.Collections.Generic.IEqualityComparer? comparer) { } [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] public static System.IObservable> CombineLatest(params System.IObservable[] sources) { } - public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onError, params byte[] allowValueType) where T : struct { } + public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onNext, params byte[] allowValueType) where T : struct { } public static System.IDisposable SubscribeSafe(System.IObservable source, System.IObserver observer, params byte[] allowValueType) where T : struct { } - public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onError, params bool[] allowNullable) where T : struct { } - public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onError, params bool[] allowNullable) where T : class { } + public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onNext, params bool[] allowNullable) where T : class { } + public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onNext, params bool[] allowNullable) where T : struct { } public static System.IDisposable SubscribeSafe(System.IObservable source, System.IObserver observer, params bool[] allowNullable) where T : class { } public static System.IDisposable SubscribeSafe(System.IObservable source, System.IObserver observer, params bool[] allowNullable) where T : struct { } - public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onError, System.Action onCompleted, params byte[] allowValueType) where T : struct { } public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onNext, System.Action onError, params byte[] allowValueType) where T : struct { } - public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onError, System.Action onCompleted, params bool[] allowNullable) where T : class { } - public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onError, System.Action onCompleted, params bool[] allowNullable) where T : struct { } public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onNext, System.Action onError, params bool[] allowNullable) where T : class { } public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onNext, System.Action onError, params bool[] allowNullable) where T : struct { } public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onNext, System.Action onError, System.Action onCompleted, params byte[] allowValueType) where T : struct { } public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onNext, System.Action onError, System.Action onCompleted, params bool[] allowNullable) where T : class { } public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onNext, System.Action onError, System.Action onCompleted, params bool[] allowNullable) where T : struct { } + public static System.IDisposable SubscribeSafeErrors(System.IObservable source, System.Action onError, params byte[] allowValueType) where T : struct { } + public static System.IDisposable SubscribeSafeErrors(System.IObservable source, System.Action onError, params bool[] allowNullable) where T : class { } + public static System.IDisposable SubscribeSafeErrors(System.IObservable source, System.Action onError, params bool[] allowNullable) where T : struct { } + public static System.IDisposable SubscribeSafeErrors(System.IObservable source, System.Action onError, System.Action onCompleted, params byte[] allowValueType) where T : struct { } + public static System.IDisposable SubscribeSafeErrors(System.IObservable source, System.Action onError, System.Action onCompleted, params bool[] allowNullable) where T : class { } + public static System.IDisposable SubscribeSafeErrors(System.IObservable source, System.Action onError, System.Action onCompleted, params bool[] allowNullable) where T : struct { } extension(System.IDisposable disposable) { public ReactiveUI.Primitives.Disposables.SingleDisposable DisposeWith() { } @@ -167,16 +170,18 @@ namespace ReactiveUI.Primitives public System.IObservable StartWith(System.Collections.Generic.IEnumerable values) { } public System.IObservable StartWith(params T[] values) { } [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] - public System.IDisposable SubscribeSafe(System.Action onError) { } + public System.IDisposable SubscribeSafe(System.Action onNext) { } [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] public System.IDisposable SubscribeSafe(System.IObserver observer) { } [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] - public System.IDisposable SubscribeSafe(System.Action onError, System.Action onCompleted) { } - [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] public System.IDisposable SubscribeSafe(System.Action onNext, System.Action onError) { } [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] public System.IDisposable SubscribeSafe(System.Action onNext, System.Action onError, System.Action onCompleted) { } [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] + public System.IDisposable SubscribeSafeErrors(System.Action onError) { } + [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] + public System.IDisposable SubscribeSafeErrors(System.Action onError, System.Action onCompleted) { } + [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] public System.IDisposable SubscribeSafePrimitives(System.IObserver observer) { } public System.IObservable Synchronize() { } public System.IObservable Synchronize(object gate) { } diff --git a/src/ReactiveUI.Primitives/PublicAPI/net481/PublicAPI.txt b/src/ReactiveUI.Primitives/PublicAPI/net481/PublicAPI.txt index e3251e17..3526b2aa 100644 --- a/src/ReactiveUI.Primitives/PublicAPI/net481/PublicAPI.txt +++ b/src/ReactiveUI.Primitives/PublicAPI/net481/PublicAPI.txt @@ -46,21 +46,24 @@ namespace ReactiveUI.Primitives public static System.IObservable BlendUnique(System.IObservable[] sources, System.Collections.Generic.IEqualityComparer? comparer) { } [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] public static System.IObservable> CombineLatest(params System.IObservable[] sources) { } - public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onError, params byte[] allowValueType) where T : struct { } + public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onNext, params byte[] allowValueType) where T : struct { } public static System.IDisposable SubscribeSafe(System.IObservable source, System.IObserver observer, params byte[] allowValueType) where T : struct { } - public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onError, params bool[] allowNullable) where T : struct { } - public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onError, params bool[] allowNullable) where T : class { } + public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onNext, params bool[] allowNullable) where T : class { } + public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onNext, params bool[] allowNullable) where T : struct { } public static System.IDisposable SubscribeSafe(System.IObservable source, System.IObserver observer, params bool[] allowNullable) where T : class { } public static System.IDisposable SubscribeSafe(System.IObservable source, System.IObserver observer, params bool[] allowNullable) where T : struct { } - public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onError, System.Action onCompleted, params byte[] allowValueType) where T : struct { } public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onNext, System.Action onError, params byte[] allowValueType) where T : struct { } - public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onError, System.Action onCompleted, params bool[] allowNullable) where T : class { } - public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onError, System.Action onCompleted, params bool[] allowNullable) where T : struct { } public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onNext, System.Action onError, params bool[] allowNullable) where T : class { } public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onNext, System.Action onError, params bool[] allowNullable) where T : struct { } public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onNext, System.Action onError, System.Action onCompleted, params byte[] allowValueType) where T : struct { } public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onNext, System.Action onError, System.Action onCompleted, params bool[] allowNullable) where T : class { } public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onNext, System.Action onError, System.Action onCompleted, params bool[] allowNullable) where T : struct { } + public static System.IDisposable SubscribeSafeErrors(System.IObservable source, System.Action onError, params byte[] allowValueType) where T : struct { } + public static System.IDisposable SubscribeSafeErrors(System.IObservable source, System.Action onError, params bool[] allowNullable) where T : class { } + public static System.IDisposable SubscribeSafeErrors(System.IObservable source, System.Action onError, params bool[] allowNullable) where T : struct { } + public static System.IDisposable SubscribeSafeErrors(System.IObservable source, System.Action onError, System.Action onCompleted, params byte[] allowValueType) where T : struct { } + public static System.IDisposable SubscribeSafeErrors(System.IObservable source, System.Action onError, System.Action onCompleted, params bool[] allowNullable) where T : class { } + public static System.IDisposable SubscribeSafeErrors(System.IObservable source, System.Action onError, System.Action onCompleted, params bool[] allowNullable) where T : struct { } extension(System.IDisposable disposable) { public ReactiveUI.Primitives.Disposables.SingleDisposable DisposeWith() { } @@ -167,16 +170,18 @@ namespace ReactiveUI.Primitives public System.IObservable StartWith(System.Collections.Generic.IEnumerable values) { } public System.IObservable StartWith(params T[] values) { } [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] - public System.IDisposable SubscribeSafe(System.Action onError) { } + public System.IDisposable SubscribeSafe(System.Action onNext) { } [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] public System.IDisposable SubscribeSafe(System.IObserver observer) { } [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] - public System.IDisposable SubscribeSafe(System.Action onError, System.Action onCompleted) { } - [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] public System.IDisposable SubscribeSafe(System.Action onNext, System.Action onError) { } [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] public System.IDisposable SubscribeSafe(System.Action onNext, System.Action onError, System.Action onCompleted) { } [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] + public System.IDisposable SubscribeSafeErrors(System.Action onError) { } + [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] + public System.IDisposable SubscribeSafeErrors(System.Action onError, System.Action onCompleted) { } + [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] public System.IDisposable SubscribeSafePrimitives(System.IObserver observer) { } public System.IObservable Synchronize() { } public System.IObservable Synchronize(object gate) { } diff --git a/src/ReactiveUI.Primitives/PublicAPI/net8.0/PublicAPI.txt b/src/ReactiveUI.Primitives/PublicAPI/net8.0/PublicAPI.txt index 7c0f4a2f..f91ba402 100644 --- a/src/ReactiveUI.Primitives/PublicAPI/net8.0/PublicAPI.txt +++ b/src/ReactiveUI.Primitives/PublicAPI/net8.0/PublicAPI.txt @@ -46,21 +46,24 @@ namespace ReactiveUI.Primitives public static System.IObservable BlendUnique(System.IObservable[] sources, System.Collections.Generic.IEqualityComparer? comparer) { } [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] public static System.IObservable> CombineLatest(params System.IObservable[] sources) { } - public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onError, params byte[] allowValueType) where T : struct { } + public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onNext, params byte[] allowValueType) where T : struct { } public static System.IDisposable SubscribeSafe(System.IObservable source, System.IObserver observer, params byte[] allowValueType) where T : struct { } - public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onError, params bool[] allowNullable) where T : struct { } - public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onError, params bool[] allowNullable) where T : class { } + public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onNext, params bool[] allowNullable) where T : class { } + public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onNext, params bool[] allowNullable) where T : struct { } public static System.IDisposable SubscribeSafe(System.IObservable source, System.IObserver observer, params bool[] allowNullable) where T : class { } public static System.IDisposable SubscribeSafe(System.IObservable source, System.IObserver observer, params bool[] allowNullable) where T : struct { } - public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onError, System.Action onCompleted, params byte[] allowValueType) where T : struct { } public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onNext, System.Action onError, params byte[] allowValueType) where T : struct { } - public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onError, System.Action onCompleted, params bool[] allowNullable) where T : class { } - public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onError, System.Action onCompleted, params bool[] allowNullable) where T : struct { } public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onNext, System.Action onError, params bool[] allowNullable) where T : class { } public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onNext, System.Action onError, params bool[] allowNullable) where T : struct { } public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onNext, System.Action onError, System.Action onCompleted, params byte[] allowValueType) where T : struct { } public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onNext, System.Action onError, System.Action onCompleted, params bool[] allowNullable) where T : class { } public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onNext, System.Action onError, System.Action onCompleted, params bool[] allowNullable) where T : struct { } + public static System.IDisposable SubscribeSafeErrors(System.IObservable source, System.Action onError, params byte[] allowValueType) where T : struct { } + public static System.IDisposable SubscribeSafeErrors(System.IObservable source, System.Action onError, params bool[] allowNullable) where T : class { } + public static System.IDisposable SubscribeSafeErrors(System.IObservable source, System.Action onError, params bool[] allowNullable) where T : struct { } + public static System.IDisposable SubscribeSafeErrors(System.IObservable source, System.Action onError, System.Action onCompleted, params byte[] allowValueType) where T : struct { } + public static System.IDisposable SubscribeSafeErrors(System.IObservable source, System.Action onError, System.Action onCompleted, params bool[] allowNullable) where T : class { } + public static System.IDisposable SubscribeSafeErrors(System.IObservable source, System.Action onError, System.Action onCompleted, params bool[] allowNullable) where T : struct { } extension(System.IDisposable disposable) { public ReactiveUI.Primitives.Disposables.SingleDisposable DisposeWith() { } @@ -167,16 +170,18 @@ namespace ReactiveUI.Primitives public System.IObservable StartWith(System.Collections.Generic.IEnumerable values) { } public System.IObservable StartWith(params T[] values) { } [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] - public System.IDisposable SubscribeSafe(System.Action onError) { } + public System.IDisposable SubscribeSafe(System.Action onNext) { } [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] public System.IDisposable SubscribeSafe(System.IObserver observer) { } [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] - public System.IDisposable SubscribeSafe(System.Action onError, System.Action onCompleted) { } - [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] public System.IDisposable SubscribeSafe(System.Action onNext, System.Action onError) { } [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] public System.IDisposable SubscribeSafe(System.Action onNext, System.Action onError, System.Action onCompleted) { } [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] + public System.IDisposable SubscribeSafeErrors(System.Action onError) { } + [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] + public System.IDisposable SubscribeSafeErrors(System.Action onError, System.Action onCompleted) { } + [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] public System.IDisposable SubscribeSafePrimitives(System.IObserver observer) { } public System.IObservable Synchronize() { } public System.IObservable Synchronize(object gate) { } diff --git a/src/ReactiveUI.Primitives/PublicAPI/net9.0/PublicAPI.txt b/src/ReactiveUI.Primitives/PublicAPI/net9.0/PublicAPI.txt index cc953984..16b5ec37 100644 --- a/src/ReactiveUI.Primitives/PublicAPI/net9.0/PublicAPI.txt +++ b/src/ReactiveUI.Primitives/PublicAPI/net9.0/PublicAPI.txt @@ -48,26 +48,20 @@ namespace ReactiveUI.Primitives [System.Runtime.CompilerServices.OverloadResolutionPriority(-2)] public static System.IObservable> CombineLatest(params System.IObservable[] sources) { } [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] - public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onError, params byte[] allowValueType) where T : struct { } + public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onNext, params byte[] allowValueType) where T : struct { } [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] public static System.IDisposable SubscribeSafe(System.IObservable source, System.IObserver observer, params byte[] allowValueType) where T : struct { } [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] - public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onError, params bool[] allowNullable) where T : struct { } + public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onNext, params bool[] allowNullable) where T : class { } [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] - public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onError, params bool[] allowNullable) where T : class { } + public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onNext, params bool[] allowNullable) where T : struct { } [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] public static System.IDisposable SubscribeSafe(System.IObservable source, System.IObserver observer, params bool[] allowNullable) where T : class { } [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] public static System.IDisposable SubscribeSafe(System.IObservable source, System.IObserver observer, params bool[] allowNullable) where T : struct { } [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] - public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onError, System.Action onCompleted, params byte[] allowValueType) where T : struct { } - [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onNext, System.Action onError, params byte[] allowValueType) where T : struct { } [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] - public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onError, System.Action onCompleted, params bool[] allowNullable) where T : class { } - [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] - public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onError, System.Action onCompleted, params bool[] allowNullable) where T : struct { } - [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onNext, System.Action onError, params bool[] allowNullable) where T : class { } [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onNext, System.Action onError, params bool[] allowNullable) where T : struct { } @@ -77,6 +71,18 @@ namespace ReactiveUI.Primitives public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onNext, System.Action onError, System.Action onCompleted, params bool[] allowNullable) where T : class { } [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] public static System.IDisposable SubscribeSafe(System.IObservable source, System.Action onNext, System.Action onError, System.Action onCompleted, params bool[] allowNullable) where T : struct { } + [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] + public static System.IDisposable SubscribeSafeErrors(System.IObservable source, System.Action onError, params byte[] allowValueType) where T : struct { } + [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] + public static System.IDisposable SubscribeSafeErrors(System.IObservable source, System.Action onError, params bool[] allowNullable) where T : class { } + [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] + public static System.IDisposable SubscribeSafeErrors(System.IObservable source, System.Action onError, params bool[] allowNullable) where T : struct { } + [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] + public static System.IDisposable SubscribeSafeErrors(System.IObservable source, System.Action onError, System.Action onCompleted, params byte[] allowValueType) where T : struct { } + [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] + public static System.IDisposable SubscribeSafeErrors(System.IObservable source, System.Action onError, System.Action onCompleted, params bool[] allowNullable) where T : class { } + [System.Runtime.CompilerServices.OverloadResolutionPriority(1)] + public static System.IDisposable SubscribeSafeErrors(System.IObservable source, System.Action onError, System.Action onCompleted, params bool[] allowNullable) where T : struct { } extension(System.IDisposable disposable) { public ReactiveUI.Primitives.Disposables.SingleDisposable DisposeWith() { } @@ -183,16 +189,18 @@ namespace ReactiveUI.Primitives public System.IObservable StartWith(System.Collections.Generic.IEnumerable values) { } public System.IObservable StartWith(params T[] values) { } [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] - public System.IDisposable SubscribeSafe(System.Action onError) { } + public System.IDisposable SubscribeSafe(System.Action onNext) { } [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] public System.IDisposable SubscribeSafe(System.IObserver observer) { } [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] - public System.IDisposable SubscribeSafe(System.Action onError, System.Action onCompleted) { } - [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] public System.IDisposable SubscribeSafe(System.Action onNext, System.Action onError) { } [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] public System.IDisposable SubscribeSafe(System.Action onNext, System.Action onError, System.Action onCompleted) { } [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] + public System.IDisposable SubscribeSafeErrors(System.Action onError) { } + [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] + public System.IDisposable SubscribeSafeErrors(System.Action onError, System.Action onCompleted) { } + [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] public System.IDisposable SubscribeSafePrimitives(System.IObserver observer) { } public System.IObservable Synchronize() { } public System.IObservable Synchronize(System.Threading.Lock gate) { } diff --git a/src/tests/ReactiveUI.Primitives.Reactive.Tests/LinqExtensionsTests.cs b/src/tests/ReactiveUI.Primitives.Reactive.Tests/LinqExtensionsTests.cs index 6b9bbe98..5eba7fa3 100644 --- a/src/tests/ReactiveUI.Primitives.Reactive.Tests/LinqExtensionsTests.cs +++ b/src/tests/ReactiveUI.Primitives.Reactive.Tests/LinqExtensionsTests.cs @@ -25,6 +25,9 @@ public partial class LinqExtensionsTests /// The second non-null test value. private const int Two = 2; + /// The number of completing subscriptions made by the SubscribeSafeErrors dispatch test. + private const int CompletingSubscriptionCount = 4; + /// The string value used by nullable object subscription tests. private const string SubscribeSafeValue = "value"; @@ -195,11 +198,11 @@ public async Task SubscribeSafeStaticAliasAcceptsNonNullableValueTypeOverloads() (byte)0); InvalidOperationException expected = new("expected"); - using var errorSubscription = ReactiveLinqExtensions.SubscribeSafe( + using var errorSubscription = ReactiveLinqExtensions.SubscribeSafeErrors( Observable.Throw(expected), OnError, (byte)0); - using var terminalSubscription = ReactiveLinqExtensions.SubscribeSafe( + using var terminalSubscription = ReactiveLinqExtensions.SubscribeSafeErrors( source, OnError, () => completed++, @@ -318,10 +321,10 @@ public async Task SubscribeSafeStaticAliasAcceptsNullableErrorOnlyOverloadsWithR Exception? observedReferenceError = null; Exception? observedValueError = null; - using var referenceSubscription = ReactiveLinqExtensions.SubscribeSafe( + using var referenceSubscription = ReactiveLinqExtensions.SubscribeSafeErrors( Signal.Fail(referenceError), error => observedReferenceError = error); - using var valueSubscription = ReactiveLinqExtensions.SubscribeSafe( + using var valueSubscription = ReactiveLinqExtensions.SubscribeSafeErrors( Signal.Fail(valueError), error => observedValueError = error); @@ -329,6 +332,61 @@ public async Task SubscribeSafeStaticAliasAcceptsNullableErrorOnlyOverloadsWithR await Assert.That(observedValueError).IsSameReferenceAs(valueError); } + /// Verifies a lone delegate passed to SubscribeSafe receives values for every dispatch variant. + /// A task representing the asynchronous operation. + [Test] + public async Task SubscribeSafeLoneDelegateReceivesValuesForEveryDispatchVariant() + { + List fluentValues = []; + List referenceValues = []; + List nullableValues = []; + List valueTypeValues = []; + + using var fluentSubscription = Signal.FromEnumerable([One, Two]).SubscribeSafe(fluentValues.Add); + using var referenceSubscription = ReactiveLinqExtensions.SubscribeSafe( + Signal.FromEnumerable([SubscribeSafeValue]), + referenceValues.Add); + using var nullableSubscription = ReactiveLinqExtensions.SubscribeSafe( + Signal.FromEnumerable([null, One]), + nullableValues.Add); + using var valueTypeSubscription = ReactiveLinqExtensions.SubscribeSafe( + Signal.FromEnumerable([One, Two]), + valueTypeValues.Add); + + await Assert.That(fluentValues.SequenceEqual([One, Two])).IsTrue(); + await Assert.That(referenceValues.SequenceEqual([SubscribeSafeValue])).IsTrue(); + await Assert.That(nullableValues.SequenceEqual([null, One])).IsTrue(); + await Assert.That(valueTypeValues.SequenceEqual([One, Two])).IsTrue(); + } + + /// Verifies SubscribeSafeErrors receives errors and completion for every dispatch variant. + /// A task representing the asynchronous operation. + [Test] + public async Task SubscribeSafeErrorsReceivesErrorsAndCompletionForEveryDispatchVariant() + { + InvalidOperationException expected = new("expected"); + Exception? fluentError = null; + var completed = 0; + + using var fluentSubscription = Signal.Fail(expected).SubscribeSafeErrors(error => fluentError = error); + using var fluentCompleted = Signal.FromEnumerable([One]).SubscribeSafeErrors(static _ => { }, () => completed++); + using var referenceCompleted = ReactiveLinqExtensions.SubscribeSafeErrors( + Signal.FromEnumerable([SubscribeSafeValue]), + static _ => { }, + () => completed++); + using var nullableCompleted = ReactiveLinqExtensions.SubscribeSafeErrors( + Signal.FromEnumerable([One]), + static _ => { }, + () => completed++); + using var valueTypeCompleted = ReactiveLinqExtensions.SubscribeSafeErrors( + Signal.FromEnumerable([One]), + static _ => { }, + () => completed++); + + await Assert.That(fluentError).IsSameReferenceAs(expected); + await Assert.That(completed).IsEqualTo(CompletingSubscriptionCount); + } + /// Verifies static alias SubscribeSafe accepts nullable terminal completion overloads with Rx imports present. /// A task representing the asynchronous operation. [Test] @@ -339,11 +397,11 @@ public async Task SubscribeSafeStaticAliasAcceptsNullableTerminalCompletionOverl var referenceCompleted = 0; var valueCompleted = 0; - using var referenceSubscription = ReactiveLinqExtensions.SubscribeSafe( + using var referenceSubscription = ReactiveLinqExtensions.SubscribeSafeErrors( Signal.FromEnumerable([null, SubscribeSafeValue]), error => referenceObserved = error, () => referenceCompleted++); - using var valueSubscription = ReactiveLinqExtensions.SubscribeSafe( + using var valueSubscription = ReactiveLinqExtensions.SubscribeSafeErrors( Signal.FromEnumerable([null, One, null, Two]), error => valueObserved = error, () => valueCompleted++); diff --git a/src/tests/ReactiveUI.Primitives.Tests/RxNamesTests.DynamicDataCompatibility.cs b/src/tests/ReactiveUI.Primitives.Tests/RxNamesTests.DynamicDataCompatibility.cs index b60729f5..d779e0ac 100644 --- a/src/tests/ReactiveUI.Primitives.Tests/RxNamesTests.DynamicDataCompatibility.cs +++ b/src/tests/ReactiveUI.Primitives.Tests/RxNamesTests.DynamicDataCompatibility.cs @@ -237,7 +237,7 @@ public async Task SubscribeSafeOverloadsStopAfterTerminalNotifications() { observer.OnError(expected); observer.OnError(new InvalidOperationException("late")); - }).SubscribeSafe(error => errorOnlyCount += ReferenceEquals(error, expected) ? One : 0); + }).SubscribeSafeErrors(error => errorOnlyCount += ReferenceEquals(error, expected) ? One : 0); await Assert.That(errorOnlyCount).IsEqualTo(One); @@ -247,7 +247,7 @@ public async Task SubscribeSafeOverloadsStopAfterTerminalNotifications() observer.OnCompleted(); observer.OnNext(Two); observer.OnCompleted(); - }).SubscribeSafe(static _ => { }, () => completed++); + }).SubscribeSafeErrors(static _ => { }, () => completed++); await Assert.That(completed).IsEqualTo(One); diff --git a/src/tests/ReactiveUI.Primitives.Tests/RxNamesTests.SubscribeSafe.cs b/src/tests/ReactiveUI.Primitives.Tests/RxNamesTests.SubscribeSafe.cs index 74050125..7ad22362 100644 --- a/src/tests/ReactiveUI.Primitives.Tests/RxNamesTests.SubscribeSafe.cs +++ b/src/tests/ReactiveUI.Primitives.Tests/RxNamesTests.SubscribeSafe.cs @@ -16,6 +16,9 @@ namespace ReactiveUI.Primitives.Tests; /// SubscribeSafe-specific Rx-name compatibility tests. public partial class RxNamesTests { + /// The number of completing subscriptions made by the SubscribeSafeErrors dispatch test. + private const int CompletingSubscriptionCount = 3; + /// The string value used by nullable object subscription tests. private const string SubscribeSafeValue = "value"; @@ -67,14 +70,17 @@ public static IDisposable SubscribeCallbacks( Action onCompleted) => PrimitivesLinqExtensions.SubscribeSafe(source, onNext, onError, onCompleted); + public static IDisposable SubscribeNext(IObservable source, Action onNext) => + PrimitivesLinqExtensions.SubscribeSafe(source, onNext); + public static IDisposable SubscribeError(IObservable source, Action onError) => - PrimitivesLinqExtensions.SubscribeSafe(source, onError); + PrimitivesLinqExtensions.SubscribeSafeErrors(source, onError); public static IDisposable SubscribeTerminal( IObservable source, Action onError, Action onCompleted) => - PrimitivesLinqExtensions.SubscribeSafe(source, onError, onCompleted); + PrimitivesLinqExtensions.SubscribeSafeErrors(source, onError, onCompleted); public static IDisposable SubscribeNullableObserver( IObservable source, @@ -94,16 +100,19 @@ public static IDisposable SubscribeNullableCallbacks( Action onCompleted) => PrimitivesLinqExtensions.SubscribeSafe(source, onNext, onError, onCompleted); + public static IDisposable SubscribeNullableNext(IObservable source, Action onNext) => + PrimitivesLinqExtensions.SubscribeSafe(source, onNext); + public static IDisposable SubscribeNullableError( IObservable source, Action onError) => - PrimitivesLinqExtensions.SubscribeSafe(source, onError); + PrimitivesLinqExtensions.SubscribeSafeErrors(source, onError); public static IDisposable SubscribeNullableTerminal( IObservable source, Action onError, Action onCompleted) => - PrimitivesLinqExtensions.SubscribeSafe(source, onError, onCompleted); + PrimitivesLinqExtensions.SubscribeSafeErrors(source, onError, onCompleted); } """; @@ -189,11 +198,11 @@ public async Task SubscribeSafeStaticAliasAcceptsNonNullableValueTypeOverloads() (byte)0); InvalidOperationException expected = new("expected"); - using var errorSubscription = PrimitivesLinqExtensions.SubscribeSafe( + using var errorSubscription = PrimitivesLinqExtensions.SubscribeSafeErrors( Observable.Throw(expected), OnError, (byte)0); - using var terminalSubscription = PrimitivesLinqExtensions.SubscribeSafe( + using var terminalSubscription = PrimitivesLinqExtensions.SubscribeSafeErrors( source, OnError, () => completed++, @@ -343,10 +352,10 @@ public async Task SubscribeSafeStaticAliasAcceptsNullableErrorOnlyOverloadsWithR Exception? observedReferenceError = null; Exception? observedValueError = null; - using var referenceSubscription = PrimitivesLinqExtensions.SubscribeSafe( + using var referenceSubscription = PrimitivesLinqExtensions.SubscribeSafeErrors( Signal.Fail(referenceError), error => observedReferenceError = error); - using var valueSubscription = PrimitivesLinqExtensions.SubscribeSafe( + using var valueSubscription = PrimitivesLinqExtensions.SubscribeSafeErrors( Signal.Fail(valueError), error => observedValueError = error); @@ -364,11 +373,11 @@ public async Task SubscribeSafeStaticAliasAcceptsNullableTerminalCompletionOverl var referenceCompleted = 0; var valueCompleted = 0; - using var referenceSubscription = PrimitivesLinqExtensions.SubscribeSafe( + using var referenceSubscription = PrimitivesLinqExtensions.SubscribeSafeErrors( Signal.FromEnumerable([null, SubscribeSafeValue]), error => referenceObserved = error, () => referenceCompleted++); - using var valueSubscription = PrimitivesLinqExtensions.SubscribeSafe( + using var valueSubscription = PrimitivesLinqExtensions.SubscribeSafeErrors( Signal.FromEnumerable([null, One, null, Two]), error => valueObserved = error, () => valueCompleted++); @@ -379,6 +388,140 @@ public async Task SubscribeSafeStaticAliasAcceptsNullableTerminalCompletionOverl await Assert.That(valueCompleted).IsEqualTo(1); } + /// Verifies a method group passed alone to SubscribeSafe receives the values. + /// A task representing the asynchronous operation. + [Test] + public async Task SubscribeSafe_MethodGroupAlone_ReceivesValues() + { + List values = []; + + using var subscription = Signal.FromEnumerable([One, Two]).SubscribeSafe(values.Add); + + await Assert.That(values.SequenceEqual([One, Two])).IsTrue(); + } + + /// Verifies a lambda passed alone to SubscribeSafe receives the values. + /// A task representing the asynchronous operation. + [Test] + public async Task SubscribeSafe_LambdaAlone_ReceivesValues() + { + List values = []; + + using var subscription = Signal.FromEnumerable([One, Two]).SubscribeSafe(x => + { + values.Add(x); + }); + + await Assert.That(values.SequenceEqual([One, Two])).IsTrue(); + } + + /// Verifies a discarding lambda passed alone to SubscribeSafe counts the values. + /// A task representing the asynchronous operation. + [Test] + public async Task SubscribeSafe_DiscardLambdaAlone_CountsValues() + { + int[] emitted = [One, Two, Three]; + var count = 0; + + using var subscription = Signal.FromEnumerable(emitted).SubscribeSafe(_ => count++); + + await Assert.That(count).IsEqualTo(emitted.Length); + } + + /// Verifies the onNext-only form rethrows a source error because no error handler exists. + /// A task representing the asynchronous operation. + [Test] + public async Task SubscribeSafe_LoneOnNextWithSourceError_RethrowsTheError() + { + InvalidOperationException expected = new(Boom); + var source = Signal.Fail(expected); + + var thrown = Assert.Throws(() => source.SubscribeSafe(static _ => { })); + + await Assert.That(thrown).IsSameReferenceAs(expected); + } + + /// Verifies the static onNext-only forms deliver values for reference, nullable value and value types. + /// A task representing the asynchronous operation. + [Test] + public async Task SubscribeSafe_StaticLoneOnNext_ReceivesValuesForEveryDispatchVariant() + { + List referenceValues = []; + List nullableValues = []; + List valueTypeValues = []; + + using var referenceSubscription = PrimitivesLinqExtensions.SubscribeSafe( + Signal.FromEnumerable([SubscribeSafeValue]), + referenceValues.Add); + using var nullableSubscription = PrimitivesLinqExtensions.SubscribeSafe( + Signal.FromEnumerable([null, One]), + nullableValues.Add); + using var valueTypeSubscription = PrimitivesLinqExtensions.SubscribeSafe( + Signal.FromEnumerable([One, Two]), + valueTypeValues.Add); + + await Assert.That(referenceValues.SequenceEqual([SubscribeSafeValue])).IsTrue(); + await Assert.That(nullableValues.SequenceEqual([null, One])).IsTrue(); + await Assert.That(valueTypeValues.SequenceEqual([One, Two])).IsTrue(); + } + + /// Verifies the fluent SubscribeSafeErrors forms receive the error and complete. + /// A task representing the asynchronous operation. + [Test] + public async Task SubscribeSafeErrors_Fluent_ReceivesErrorAndCompletion() + { + InvalidOperationException expected = new(Boom); + Exception? observed = null; + var completed = 0; + + using var errorSubscription = Signal.Fail(expected).SubscribeSafeErrors(error => observed = error); + using var completionSubscription = Signal.FromEnumerable([One]).SubscribeSafeErrors( + static _ => { }, + () => completed++); + + await Assert.That(observed).IsSameReferenceAs(expected); + await Assert.That(completed).IsEqualTo(One); + } + + /// Verifies the static SubscribeSafeErrors forms receive the error and complete for every dispatch variant. + /// A task representing the asynchronous operation. + [Test] + public async Task SubscribeSafeErrors_Static_ReceivesErrorAndCompletionForEveryDispatchVariant() + { + InvalidOperationException expected = new(Boom); + Exception? referenceError = null; + Exception? nullableError = null; + Exception? valueTypeError = null; + var completed = 0; + + using var referenceSubscription = PrimitivesLinqExtensions.SubscribeSafeErrors( + Signal.Fail(expected), + error => referenceError = error); + using var nullableSubscription = PrimitivesLinqExtensions.SubscribeSafeErrors( + Signal.Fail(expected), + error => nullableError = error); + using var valueTypeSubscription = PrimitivesLinqExtensions.SubscribeSafeErrors( + Signal.Fail(expected), + error => valueTypeError = error); + using var referenceCompleted = PrimitivesLinqExtensions.SubscribeSafeErrors( + Signal.FromEnumerable([SubscribeSafeValue]), + static _ => { }, + () => completed++); + using var nullableCompleted = PrimitivesLinqExtensions.SubscribeSafeErrors( + Signal.FromEnumerable([One]), + static _ => { }, + () => completed++); + using var valueTypeCompleted = PrimitivesLinqExtensions.SubscribeSafeErrors( + Signal.FromEnumerable([One]), + static _ => { }, + () => completed++); + + await Assert.That(referenceError).IsSameReferenceAs(expected); + await Assert.That(nullableError).IsSameReferenceAs(expected); + await Assert.That(valueTypeError).IsSameReferenceAs(expected); + await Assert.That(completed).IsEqualTo(CompletingSubscriptionCount); + } + /// Verifies the explicit Primitives name delivers the same notifications as the observer overload. /// A task representing the asynchronous operation. [Test]