- Updated all component headers and documentation
- Changed navbar and footer branding
- Updated homepage hero badge
- Modified page title in index.html
- Simplified footer text to 'Built with ❤️'
- Consistent V2 capitalization across all references
24 lines
623 B
TypeScript
24 lines
623 B
TypeScript
import { Child } from './child';
|
|
interface ChildPoolOpts {
|
|
mainFile?: string;
|
|
useWorkerThreads?: boolean;
|
|
}
|
|
export declare class ChildPool {
|
|
retained: {
|
|
[key: number]: Child;
|
|
};
|
|
free: {
|
|
[key: string]: Child[];
|
|
};
|
|
private opts;
|
|
constructor({ mainFile, useWorkerThreads, }: 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 {};
|