Interface WorkerInfoInternal

Worker information.

interface WorkerInfo {
    dynamic: boolean;
    id: undefined | number;
    ready: boolean;
    stealing: boolean;
    taskFunctionNames?: string[];
    type: "thread" | "cluster";
}

Properties

dynamic: boolean

Dynamic flag.

id: undefined | number

Worker id.

ready: boolean

Ready flag.

stealing: boolean

Stealing flag. This flag is set to true when worker node is stealing tasks from another worker node.

taskFunctionNames?: string[]

Task function names.

type: "thread" | "cluster"

Worker type.

Generated using TypeDoc