Options
All
  • Public
  • Public/Protected
  • All
Menu

Class CliProcessHandler

Hierarchy

  • CliProcessHandler

Implements

Index

Constructors

constructor

  • new CliProcessHandler(childProcess: ChildProcess, statsFilePath?: string): CliProcessHandler

Properties

Readonly childProcess

childProcess: ChildProcess

ended

ended: boolean

Optional errored

errored: Error

Optional Readonly statsFilePath

statsFilePath: string

Readonly terminationHandlers

terminationHandlers: Set<(processName: string, error?: Error) => void>

Methods

addTerminationHandler

  • addTerminationHandler(handler: (processName: string, error?: Error) => void): void

close

  • close(): Promise<void>

join

  • join(): Promise<void>

Protected onTerminated

  • onTerminated(error?: Error): void

removeTerminationHandler

  • removeTerminationHandler(handler: (processName: string, error?: Error) => void): void

startCollectingStats

  • startCollectingStats(): Promise<() => void>

Generated using TypeDoc