parallel-es
Version:
Simple parallelization for EcmaScript
16 lines (15 loc) • 850 B
TypeScript
import { IWorkerThreadFactory } from "../../common/worker/worker-thread-factory";
import { IWorkerThread } from "../../common/worker/worker-thread";
import { DynamicFunctionRegistry } from "../../common/function/dynamic-function-registry";
export declare class NodeWorkerThreadFactory implements IWorkerThreadFactory {
private functionLookupTable;
constructor(functionLookupTable: DynamicFunctionRegistry);
spawn(): IWorkerThread;
/**
* Hackedy Hack... Issue is, webpack handles calls to require resolve and replaces the call with the module id
* but that's not what we want. We actually want the require resolve call to be left until execution.
* NoParse is neither an option because then no requires / imports are resolved
* @returns {string} the file name of the slave
*/
private getSlaveFileName();
}