BaseFunctionThreadJobWorkerData: BaseThreadJobWorkerData & {
    func: string;
    input: I;
}

The data to run a function in the thread worker.

IMPORTANT: This uses "eval" in the thread worker, so make sure that the data passed is not malicious.

Type Parameters

  • I

Type declaration

  • func: string

    A stringified function to call in the worker.

  • input: I

    The input parameter of the function.