Skip to content

,System.Reactive.Concurrency.IScheduler)}

ReactiveExtensions.Start(Action, IScheduler?) method

Defined in

Type: ReactiveExtensions Namespace: ReactiveUI.Primitives.Extensions.Reactive Assembly: ReactiveUI.Primitives.Extensions.Reactive.dll

Applies to

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

Overloads

  • 1. public static IObservable<Unit> Start(Action action, IScheduler? scheduler)
  • 2. public static IObservable<TResult> Start<TResult>(Func<TResult> function, IScheduler? scheduler)

1. Overload

public static IObservable<Unit> Start(Action action, IScheduler? scheduler)

View source

Summary: Invokes the action asynchronously surfacing the result through a RxVoid observable.

Parameters

NameTypeDescription
actionActionAction to run.
scheduler[IScheduler?](#Scheduler (optional).

Returns: IObservable -- A sequence producing RxVoid upon completion.

2. Overload

public static IObservable<TResult> Start<TResult>(Func<TResult> function, IScheduler? scheduler)

View source

Summary: Invokes the specified function asynchronously surfacing the result.

Type parameters

NameDescription
TResultResult type.

Parameters

NameTypeDescription
functionFuncFunction to run.
scheduler[IScheduler?](#Scheduler.

Returns: IObservable -- A sequence producing the function result.