@openhps/core
    Preparing search index...

    Interface WorkerNodeOptions

    interface WorkerNodeOptions {
        args?: any;
        blob?: boolean;
        directory?: string;
        imports?: string[];
        methods?: WorkerMethod[];
        name?: string;
        optimizedPull?: boolean;
        poolConcurrency?: number;
        poolSize?: number;
        services?: Service[];
        timeout?: number;
        type?: "classic" | "typescript" | "module";
        uid?: string;
        worker?: string;
    }

    Hierarchy (View Summary)

    Index
    args?: any
    blob?: boolean
    directory?: string
    imports?: string[]

    Worker external imports

    methods?: WorkerMethod[]
    name?: string

    User friendly name of the node Used for querying a node by its name.

    optimizedPull?: boolean

    Pull requests skip the worker

    poolConcurrency?: number

    Concurrent tasks send to the same worker in the pool

    poolSize?: number

    Pool size, defaults to 4 but should equal the amount of available cores - 1

    services?: Service[]

    Services to clone from main thread. When not specified it will clone all services

    model.findAllServices()
    
    timeout?: number

    Timeout spawning

    type?: "classic" | "typescript" | "module"

    Worker type

    uid?: string

    Manually set the unique identifier of the node

    worker?: string

    Worker runner file. When running in the browser, this is the js file named worker.openhps-core.min.js