Skip to content

,System.Boolean,ReactiveUI.Primitives.Async.Reactive.AsyncContext)} ,System.Boolean,ReactiveUI.Primitives.Async.Reactive.AsyncContext,System.Boolean)} ,System.Boolean,System.Threading.Tasks.TaskScheduler)} ,System.Boolean,System.Threading.Tasks.TaskScheduler,System.Boolean)}

SignalAsyncReactiveExtensions.ObserveOnIf(IObservableAsync, bool, AsyncContext) method

Defined in

Type: SignalAsyncReactiveExtensions Namespace: ReactiveUI.Primitives.Async.Reactive Assembly: ReactiveUI.Primitives.Async.Reactive.dll

Applies to

net10.0, net10.0-browserwasm1.0, net10.0-desktop1.0, net9.0, net9.0-browserwasm1.0, net9.0-desktop1.0, net8.0, net8.0-ios17.5, net8.0-maccatalyst17.5, net8.0-macos14.2, net8.0-macos14.5, net8.0-tvos17.2, netstandard2.1, net462, net481

Overloads

  • 1. public static IObservableAsync<T> ObserveOnIf<T>(this IObservableAsync<T> source, bool condition, AsyncContext asyncContext) where T : notnull
  • 2. public static IObservableAsync<T> ObserveOnIf<T>(this IObservableAsync<T> source, bool condition, AsyncContext asyncContext, bool forceYielding) where T : notnull
  • 3. public static IObservableAsync<T> ObserveOnIf<T>(this IObservableAsync<T> source, bool condition, TaskScheduler taskScheduler) where T : notnull
  • 4. public static IObservableAsync<T> ObserveOnIf<T>(this IObservableAsync<T> source, bool condition, TaskScheduler taskScheduler, bool forceYielding) where T : notnull

1. Overload

public static IObservableAsync<T> ObserveOnIf<T>(this IObservableAsync<T> source, bool condition, AsyncContext asyncContext) where T : notnull

View source

Type parameters

NameDescription
T--

Parameters

NameTypeDescription
source[IObservableAsync](#--
conditionbool--
asyncContext[AsyncContext](#--

Returns: IObservableAsync

2. Overload

public static IObservableAsync<T> ObserveOnIf<T>(this IObservableAsync<T> source, bool condition, AsyncContext asyncContext, bool forceYielding) where T : notnull

View source

Type parameters

NameDescription
T--

Parameters

NameTypeDescription
source[IObservableAsync](#--
conditionbool--
asyncContext[AsyncContext](#--
forceYieldingbool--

Returns: IObservableAsync

3. Overload

public static IObservableAsync<T> ObserveOnIf<T>(this IObservableAsync<T> source, bool condition, TaskScheduler taskScheduler) where T : notnull

View source

Type parameters

NameDescription
T--

Parameters

NameTypeDescription
source[IObservableAsync](#--
conditionbool--
taskSchedulerTaskScheduler--

Returns: IObservableAsync

4. Overload

public static IObservableAsync<T> ObserveOnIf<T>(this IObservableAsync<T> source, bool condition, TaskScheduler taskScheduler, bool forceYielding) where T : notnull

View source

Type parameters

NameDescription
T--

Parameters

NameTypeDescription
source[IObservableAsync](#--
conditionbool--
taskSchedulerTaskScheduler--
forceYieldingbool--

Returns: IObservableAsync