ArcGIS Pro 2.9 API Reference Guide
OnWorker Property (QueuedWorker)

ArcGIS.Core.Hosting.Threading.Tasks Namespace > QueuedWorker Class : OnWorker Property
Returns True if called from the worker thread.
Syntax
public static bool OnWorker {get;}
Public Shared ReadOnly Property OnWorker As Boolean
Requirements

Target Platforms: Windows 11, Windows 10, Windows 8.1

See Also

Reference

QueuedWorker Class
QueuedWorker Members