AvaloniaScheduler class¶
Defined in
Namespace: ReactiveUI.Primitives.Reactive.Concurrency
Assembly: ReactiveUI.Primitives.Avalonia.Reactive.dll
Full name: ReactiveUI.Primitives.Reactive.Concurrency.AvaloniaScheduler
Modifiers: public sealed
Summary¶
Avalonia UI-thread scheduler that coalesces scheduled work onto a dispatcher drain.
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, net471
Class hierarchy
classDiagram
class AvaloniaScheduler
class CoalescingDispatchScheduler
CoalescingDispatchScheduler <|-- AvaloniaScheduler
Inherits from: CoalescingDispatchScheduler
Constructors¶
| Name | Summary |
|---|---|
| .ctor | Initializes a new instance of the [AvaloniaScheduler](# class. |
Properties¶
| Name | Summary |
|---|---|
| Dispatcher | Gets the dispatcher used to marshal work to the UI thread. |
| Priority | Gets the dispatcher priority used for posted drains and delayed work. |
Fields¶
| Name | Summary |
|---|---|
| static Instance | Gets the shared scheduler for UIThread. |
Methods¶
| Name | Summary |
|---|---|
| Post | Posts the cached drain callback to the platform dispatcher. |
| ScheduleOnDispatcher | Runs work on the dispatcher after dueTime. The default marshals the wait onto the shared timer, then re-queues the work onto the dispatcher when it is due. Platforms with a native UI-thread... |
Inherited members
ReactiveUI.Primitives.Reactive.Concurrency.CoalescingDispatchScheduler.#ctorReactiveUI.Primitives.Reactive.Concurrency.CoalescingDispatchScheduler.Schedule``1(``0,System.Func{System.Reactive.Concurrency.IScheduler,``0,System.IDisposable})ReactiveUI.Primitives.Reactive.Concurrency.CoalescingDispatchScheduler.Schedule``1(``0,System.TimeSpan,System.Func{System.Reactive.Concurrency.IScheduler,``0,System.IDisposable})ReactiveUI.Primitives.Reactive.Concurrency.CoalescingDispatchScheduler.Post(System.Action)ReactiveUI.Primitives.Reactive.Concurrency.CoalescingDispatchScheduler.ScheduleOnDispatcher(System.Action,System.TimeSpan)ReactiveUI.Primitives.Reactive.Concurrency.CoalescingDispatchScheduler.RequestDrainSystem.Object.Equals(System.Object)System.Object.Equals(System.Object,System.Object)System.Object.GetHashCodeSystem.Object.GetTypeSystem.Object.MemberwiseCloneSystem.Object.ReferenceEquals(System.Object,System.Object)System.Object.ToString