12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 |
- import type { FarmOptions, PoolExitResult, PromiseWithCustomMessage, TaskQueue } from './types';
- export { default as PriorityQueue } from './PriorityQueue';
- export { default as FifoQueue } from './FifoQueue';
- export { default as messageParent } from './workers/messageParent';
- export declare class Worker {
- private _ending;
- private _farm;
- private _options;
- private _workerPool;
- constructor(workerPath: string, options?: FarmOptions);
- private _bindExposedWorkerMethods;
- private _callFunctionWithArgs;
- getStderr(): NodeJS.ReadableStream;
- getStdout(): NodeJS.ReadableStream;
- end(): Promise<PoolExitResult>;
- }
- export type { PromiseWithCustomMessage, TaskQueue };
|