ArcGIS Pro 3.3 API Reference Guide
ArcGIS.Core.Threading.Tasks Namespace / BackgroundTask Class / Run Method / Run<T>(Func<T>,BackgroundProgressor,TaskContinuationOptions) Method

In This Topic
    Run<T>(Func<T>,BackgroundProgressor,TaskContinuationOptions) Method
    In This Topic
    Queue a new task to the background thread pool using the specified progressor.
    Syntax
    Public Overloads Shared Function Run(Of T)( _
       ByVal function As Func(Of T), _
       ByVal progressor As BackgroundProgressor, _
       Optional ByVal options As TaskContinuationOptions _
    ) As Task(Of T)

    Parameters

    function
    progressor
    options

    Type Parameters

    T
    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3 or higher.
    See Also