This is not really generic but written especially for the benchmarking script. It offers a work stealing thread pool executor.

Constructors

Methods

Constructors

  • Create a new parallel helper that runs the given module once for each list of Arguments in the queue. The limit stops the execution if <limit> number of runs exited successfully. The parallel parameter limits the number of parallel executions.

    Parameters

    • module: string
    • queue: WorkingQueue
    • limit: number
    • parallel: number

    Returns LimitedThreadPool

Methods