Constructors
constructor
- new ChildPool(__namedParameters): ChildPool
Parameters
- __namedParameters: ChildPoolOpts
Properties
free
free: { [
key:
string]
: Child[]; } = {} retained
retained: { [
key:
number]
: Child; } = {} Methods
clean
- clean(): Promise<void>
Returns Promise<void>
kill
- kill(child, signal?): Promise<void>
Parameters
- child: Child
- signal: "SIGKILL" | "SIGTERM" = 'SIGKILL'
Returns Promise<void>
release
- release(child): void
Returns void
remove
- remove(child): void
Returns void
retain
- retain(processFile): Promise<Child>
Returns Promise<Child>