Options
All
  • Public
  • Public/Protected
  • All
Menu

Shutdown hook function and metadata.

Hierarchy

  • ShutdownHook

Index

Properties

Optional description

description: string

Optional description used in logging.

hook

hook: () => Promise<number>

Function to call at shutdown.

Type declaration

    • (): Promise<number>
    • Returns Promise<number>

priority

priority: number

Priority of hook. Lower number values are executed first. The number provided should be greater than 0 and less 100000. Using a priority outside (0, 100000) may interfere with internal shutdown behaviors.

Generated using TypeDoc