This class defines a task with given function and parameters.

Type Parameters

  • I extends any[] = any[]
  • O = unknown

Constructors

Properties

Accessors

Methods

Constructors

Properties

args: I
doFunction: string | ((...args: I) => Promise<O>) = ...

this function will be run in the web worker

Accessors

  • get statistics(): {
        ended: number;
        started: number;
    }
  • returns timing statistics

    Returns {
        ended: number;
        started: number;
    }

    • ended: number
    • started: number
  • set statistics(value): void
  • sets timing statistics

    Parameters

    • value: {
          ended: number;
          started: number;
      }

      start and end time

      • ended: number
      • started: number

    Returns void

Methods