Interface Options

Workbench construction options.

Hierarchy

  • Options

Properties

Methods

Properties

supply?: Supply

Workbench supply to use.

Once cut off the workbench terminates all current works, and no longer accepts new ones.

A new one will be created when omitted.

Methods

  • Runs the given task.

    The default runner implementation will be used when omitted.

    Type Parameters

    • TResult

      A type of task result.

    • TWork

      A type of the work the task is part of.

    Parameters

    • task: Task<TResult>

      The task to run.

    • work: TWork

      The work instance the task is part of.

    • workload: Workload<TWork>

      The workload the task is part of.

    Returns Promise<TResult>

Generated using TypeDoc