Class Workload<TWork>

A workload able to perform a work within a workbench.

The work specific to workload is represented by work instances. Such instances are available in * workbench and can be used e.g. to run workload-specific tasks.

The same workload instance can be used in different workbenches.

Type Parameters

  • TWork

    A work type performed by this workload.

Hierarchy

Constructors

Properties

Methods

Constructors

Properties

allocator: Workload.Allocator<TWork>

Work allocator.

name: string

Human-readable workload name.

Methods

  • Builds a human-readable name of the work performed by this workload.

    This is used e.g. to construct a default error message for WorkDoneError.

    Parameters

    • Optional _work: TWork

      Target work.

    Returns string

    A string containing work name.

Generated using TypeDoc