Skip to content

AvaloniaScheduler(Dispatcher) constructor

Defined in

Type: AvaloniaScheduler Namespace: ReactiveUI.Primitives.Reactive.Concurrency Assembly: ReactiveUI.Primitives.Avalonia.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, net471

Overloads

  • 1. public AvaloniaScheduler(Dispatcher dispatcher)
  • 2. public AvaloniaScheduler(Dispatcher dispatcher, DispatcherPriority priority)

1. Overload

public AvaloniaScheduler(Dispatcher dispatcher)

View source

Summary: Initializes a new instance of the AvaloniaScheduler class.

Parameters

NameTypeDescription
dispatcherDispatcherThe dispatcher used to marshal work to the UI thread.

Exceptions

TypeCondition
System.ArgumentNullExceptiondispatcher is null.

2. Overload

public AvaloniaScheduler(Dispatcher dispatcher, DispatcherPriority priority)

View source

Summary: Initializes a new instance of the AvaloniaScheduler class.

Parameters

NameTypeDescription
dispatcherDispatcherThe dispatcher used to marshal work to the UI thread.
priorityDispatcherPriorityDispatcher priority used for posted drains and delayed work.

Exceptions

TypeCondition
System.ArgumentNullExceptiondispatcher is null.