Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface ProcessHandler

Handles a started process.

Hierarchy

  • ProcessHandler

Implemented by

Index

Methods

addTerminationHandler

  • addTerminationHandler(handler: (processName: string, error?: Error) => void): void
  • Register a termination handler.

    Parameters

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

      A handler that will be invoked when this process terminates.

        • (processName: string, error?: Error): void
        • Parameters

          • processName: string
          • Optional error: Error

          Returns void

    Returns void

close

  • close(): Promise<void>

join

  • join(): Promise<void>

removeTerminationHandler

  • removeTerminationHandler(handler: (processName: string, error?: Error) => void): void
  • Remove a termination listener.

    Parameters

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

      A registered handler.

        • (processName: string, error?: Error): void
        • Parameters

          • processName: string
          • Optional error: Error

          Returns void

    Returns void

startCollectingStats

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

Generated using TypeDoc