Review funkt
This commit is contained in:
23
node_modules/bullmq/dist/esm/classes/child-pool.d.ts
generated
vendored
Normal file
23
node_modules/bullmq/dist/esm/classes/child-pool.d.ts
generated
vendored
Normal file
@@ -0,0 +1,23 @@
|
||||
import { Child } from './child';
|
||||
import { SandboxedOptions } from '../interfaces';
|
||||
interface ChildPoolOpts extends SandboxedOptions {
|
||||
mainFile?: string;
|
||||
}
|
||||
export declare class ChildPool {
|
||||
retained: {
|
||||
[key: number]: Child;
|
||||
};
|
||||
free: {
|
||||
[key: string]: Child[];
|
||||
};
|
||||
private opts;
|
||||
constructor({ mainFile, useWorkerThreads, workerForkOptions, workerThreadsOptions, }: ChildPoolOpts);
|
||||
retain(processFile: string): Promise<Child>;
|
||||
release(child: Child): void;
|
||||
remove(child: Child): void;
|
||||
kill(child: Child, signal?: 'SIGTERM' | 'SIGKILL'): Promise<void>;
|
||||
clean(): Promise<void>;
|
||||
getFree(id: string): Child[];
|
||||
getAllFree(): Child[];
|
||||
}
|
||||
export {};
|
||||
Reference in New Issue
Block a user