ThreadJobData: ThreadJobDataFunctions & {
    priority?: boolean;
    timeout?: number;
    workerData: T;
}

Data that is needed to start a thread job.

Type Parameters

Type declaration

  • Optionalpriority?: boolean

    Wether or not the job should use priority workers.

    false
    
  • Optionaltimeout?: number

    The timeout after which the job should exit with an error.

    one hour in ms.
    
  • workerData: T

    Data that should be passed to the worker.