ArcGIS Pro 2.7 API Reference Guide
OnWorker Property (QueuedTask)

ArcGIS.Desktop.Framework.Threading.Tasks Namespace > QueuedTask Class : OnWorker Property
Gets a boolean value of True if called from the worker thread.
Syntax
public static bool OnWorker {get;}
Public Shared ReadOnly Property OnWorker As Boolean
Requirements

Target Platforms: Windows 10, Windows 8.1

See Also

Reference

QueuedTask Class
QueuedTask Members