KC's Workspace
    Preparing search index...
    interface PoolWorker {
        cacheFs?: boolean;
        canReuse?: (task: PoolTask) => boolean;
        deserialize: (data: unknown) => unknown;
        name: string;
        off: (event: string, callback: (arg: any) => void) => void;
        on: (event: string, callback: (arg: any) => void) => void;
        reportMemory?: boolean;
        send: (message: WorkerRequest) => void;
        start: () => Promise<void>;
        stop: () => Promise<void>;
    }
    Index

    Properties

    cacheFs?: boolean
    canReuse?: (task: PoolTask) => boolean

    This is called on workers that already satisfy certain constraints:

    • The task has the same project
    • The task has the same environment
    deserialize: (data: unknown) => unknown
    name: string
    off: (event: string, callback: (arg: any) => void) => void
    on: (event: string, callback: (arg: any) => void) => void
    reportMemory?: boolean
    send: (message: WorkerRequest) => void
    start: () => Promise<void>
    stop: () => Promise<void>