worker-parrot-party
Version:
Parrot party for everyone
25 lines • 762 B
TypeScript
/**
* This interface represents the configuration of the worker taken from the official site:
* https://nodejs.org/api/worker_threads.html#new-workerfilename-options
*/
export interface ParrotConfig {
execFilePath: string;
resourceLimits?: {
maxOldGenerationSizeMb: number;
maxYoungGenerationSizeMb: number;
codeRangeSizeMb: number;
stackSizeMb: number;
};
}
export declare class Parrot {
private readonly _parrotConfig;
private readonly _logger;
private readonly _id;
private _workerThread;
constructor(_parrotConfig: ParrotConfig);
private _messageHandler;
runTask(args: Array<unknown>): Promise<unknown>;
kill(): void;
get pid(): string;
}
//# sourceMappingURL=Parrot.d.ts.map