ArcGIS Pro 2.8 API Reference Guide
UIScheduler Property

ArcGIS.Desktop.Framework.Threading.Tasks Namespace > QueuedTask Class : UIScheduler Property
Gets the TaskScheduler associated with the GUI thread; can be used to dispatch delegates that need to run on the user interface thread.
Syntax
public static TaskScheduler UIScheduler {get;}
Public Shared ReadOnly Property UIScheduler As TaskScheduler
Requirements

Target Platforms: Windows 10, Windows 8.1

See Also

Reference

QueuedTask Class
QueuedTask Members