ArcGIS Pro 2.9 API Reference Guide
Run<T>(Func<T>,CancellationToken) Method

ArcGIS.Core.Hosting.Threading.Tasks Namespace > QueuedWorker Class > Run Method : Run<T>(Func<T>,CancellationToken) Method
Queues a task to the queued worker thread.
Syntax
Public Overloads Shared Function Run(Of T)( _
   ByVal function As Func(Of T), _
   ByVal cancellationToken As CancellationToken _
) As Task(Of T)

Parameters

function
cancellationToken

Type Parameters

T
Requirements

Target Platforms: Windows 11, Windows 10, Windows 8.1

See Also

Reference

QueuedWorker Class
QueuedWorker Members
Overload List