|
|
@@ -18,7 +18,7 @@ namespace System.Reactive.Linq
|
|
|
return Create(
|
|
|
source,
|
|
|
observer,
|
|
|
- (source, observer, target) => source.SubscribeSafeAsync(AsyncObserver.Do(target, observer)));
|
|
|
+ static (source, observer, target) => source.SubscribeSafeAsync(AsyncObserver.Do(target, observer)));
|
|
|
}
|
|
|
|
|
|
public static IAsyncObservable<TSource> Do<TSource>(this IAsyncObservable<TSource> source, Action<TSource> onNext)
|
|
|
@@ -31,7 +31,7 @@ namespace System.Reactive.Linq
|
|
|
return Create(
|
|
|
source,
|
|
|
onNext,
|
|
|
- (source, onNext, target) => source.SubscribeSafeAsync(AsyncObserver.Do(target, onNext)));
|
|
|
+ static (source, onNext, target) => source.SubscribeSafeAsync(AsyncObserver.Do(target, onNext)));
|
|
|
}
|
|
|
|
|
|
public static IAsyncObservable<TSource> Do<TSource>(this IAsyncObservable<TSource> source, Action<Exception> onError)
|
|
|
@@ -44,7 +44,7 @@ namespace System.Reactive.Linq
|
|
|
return Create(
|
|
|
source,
|
|
|
onError,
|
|
|
- (source, onError, target) => source.SubscribeSafeAsync(AsyncObserver.Do(target, onError)));
|
|
|
+ static (source, onError, target) => source.SubscribeSafeAsync(AsyncObserver.Do(target, onError)));
|
|
|
}
|
|
|
|
|
|
public static IAsyncObservable<TSource> Do<TSource>(this IAsyncObservable<TSource> source, Action onCompleted)
|
|
|
@@ -57,7 +57,7 @@ namespace System.Reactive.Linq
|
|
|
return Create(
|
|
|
source,
|
|
|
onCompleted,
|
|
|
- (source, onCompleted, target) => source.SubscribeSafeAsync(AsyncObserver.Do(target, onCompleted)));
|
|
|
+ static (source, onCompleted, target) => source.SubscribeSafeAsync(AsyncObserver.Do(target, onCompleted)));
|
|
|
}
|
|
|
|
|
|
public static IAsyncObservable<TSource> Do<TSource>(this IAsyncObservable<TSource> source, Action<TSource> onNext, Action<Exception> onError, Action onCompleted)
|
|
|
@@ -74,7 +74,7 @@ namespace System.Reactive.Linq
|
|
|
return Create(
|
|
|
source,
|
|
|
(onNext, onError, onCompleted),
|
|
|
- (source, state, target) => source.SubscribeSafeAsync(AsyncObserver.Do(target, state.onNext, state.onError, state.onCompleted)));
|
|
|
+ static (source, state, target) => source.SubscribeSafeAsync(AsyncObserver.Do(target, state.onNext, state.onError, state.onCompleted)));
|
|
|
}
|
|
|
|
|
|
public static IAsyncObservable<TSource> Do<TSource>(this IAsyncObservable<TSource> source, IAsyncObserver<TSource> observer)
|
|
|
@@ -87,7 +87,7 @@ namespace System.Reactive.Linq
|
|
|
return Create(
|
|
|
source,
|
|
|
observer,
|
|
|
- (source, observer, target) => source.SubscribeSafeAsync(AsyncObserver.Do(target, observer)));
|
|
|
+ static (source, observer, target) => source.SubscribeSafeAsync(AsyncObserver.Do(target, observer)));
|
|
|
}
|
|
|
|
|
|
public static IAsyncObservable<TSource> Do<TSource>(this IAsyncObservable<TSource> source, Func<TSource, ValueTask> onNext)
|
|
|
@@ -100,7 +100,7 @@ namespace System.Reactive.Linq
|
|
|
return Create(
|
|
|
source,
|
|
|
onNext,
|
|
|
- (source, onNext, target) => source.SubscribeSafeAsync(AsyncObserver.Do(target, onNext)));
|
|
|
+ static (source, onNext, target) => source.SubscribeSafeAsync(AsyncObserver.Do(target, onNext)));
|
|
|
}
|
|
|
|
|
|
public static IAsyncObservable<TSource> Do<TSource>(this IAsyncObservable<TSource> source, Func<Exception, ValueTask> onError)
|
|
|
@@ -113,7 +113,7 @@ namespace System.Reactive.Linq
|
|
|
return Create(
|
|
|
source,
|
|
|
onError,
|
|
|
- (source, onError, target) => source.SubscribeSafeAsync(AsyncObserver.Do(target, onError)));
|
|
|
+ static (source, onError, target) => source.SubscribeSafeAsync(AsyncObserver.Do(target, onError)));
|
|
|
}
|
|
|
|
|
|
public static IAsyncObservable<TSource> Do<TSource>(this IAsyncObservable<TSource> source, Func<ValueTask> onCompleted)
|
|
|
@@ -126,7 +126,7 @@ namespace System.Reactive.Linq
|
|
|
return Create(
|
|
|
source,
|
|
|
onCompleted,
|
|
|
- (source, onCompleted, target) => source.SubscribeSafeAsync(AsyncObserver.Do(target, onCompleted)));
|
|
|
+ static (source, onCompleted, target) => source.SubscribeSafeAsync(AsyncObserver.Do(target, onCompleted)));
|
|
|
}
|
|
|
|
|
|
public static IAsyncObservable<TSource> Do<TSource>(this IAsyncObservable<TSource> source, Func<TSource, ValueTask> onNext, Func<Exception, ValueTask> onError, Func<ValueTask> onCompleted)
|
|
|
@@ -143,7 +143,7 @@ namespace System.Reactive.Linq
|
|
|
return Create(
|
|
|
source,
|
|
|
(onNext, onError, onCompleted),
|
|
|
- (source, state, target) => source.SubscribeSafeAsync(AsyncObserver.Do(target, state.onNext, state.onError, state.onCompleted)));
|
|
|
+ static (source, state, target) => source.SubscribeSafeAsync(AsyncObserver.Do(target, state.onNext, state.onError, state.onCompleted)));
|
|
|
}
|
|
|
}
|
|
|
|