ArcGIS Pro 3.2 API Reference Guide
ArcGIS.Core.Hosting.Threading.Tasks Namespace / QueuedWorker Class / Run Method / Run<T>(Func<T>,CancellationToken) Method

In This Topic
    Run<T>(Func<T>,CancellationToken) Method
    In This Topic
    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

    ArcGIS Pro version: 3 or higher.
    See Also