Class BaseTask<T, R>Abstract Internal

BaseTask class is the foundation of Task and GroupTask class.

Remarks

It is an abstract class with worker, workerParams, and result (getter) as public accessors. Task and GroupTask class extends it to implement their own execution method and also use its protected accessor, result (setter) to store the task execution result.

Type Parameters

  • T extends unknown[]

    The type of the task worker parameters.

  • R

    The type of the task worker result.

Hierarchy

Constructors

Accessors

Constructors

  • Type Parameters

    • T extends unknown[]

      The type of the task worker parameters.

    • R

      The type of the task worker result.

    Parameters

    • taskConfig: TaskConfigI<T, R> = {}

      The configuration options for the task.

    Returns BaseTask<T, R>

    Default Value

    {}
    

Accessors

Generated using TypeDoc