ArcGIS Pro 2.6 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, Windows 7

See Also

Reference

QueuedTask Class
QueuedTask Members