Class RxSchedulers
- Namespace
- ReactiveUI
- Assembly
- ReactiveUI.dll
Provides access to ReactiveUI schedulers without requiring unreferenced code attributes. This is a lightweight alternative to RxApp for consuming scheduler properties.
public static class RxSchedulers
- Inheritance
-
RxSchedulers
Remarks
This class provides basic scheduler functionality without the overhead of dependency injection or unit test detection, allowing consumers to access schedulers without needing RequiresUnreferencedCode attributes. For full functionality including unit test support, use RxApp schedulers instead.
Properties
MainThreadScheduler
Gets or sets a scheduler used to schedule work items that should be run "on the UI thread". In normal mode, this will be DispatcherScheduler. This defaults to DefaultScheduler.Instance.
public static IScheduler MainThreadScheduler { get; set; }
Property Value
- IScheduler
Remarks
This is a simplified version that doesn't include unit test detection. For full functionality including unit test support, use RxSchedulers.MainThreadScheduler.
TaskpoolScheduler
Gets or sets the scheduler used to schedule work items to run in a background thread. This defaults to TaskPoolScheduler.Default.
public static IScheduler TaskpoolScheduler { get; set; }
Property Value
- IScheduler
Remarks
This is a simplified version that doesn't include unit test detection. For full functionality including unit test support, use RxApp.TaskpoolScheduler.