Middleware which stores various actions that should be executed when app is shut down.

Hierarchy

  • ShutdownActionsMiddleware

Constructors

Properties

logger: Logger = ...
shutdownActions: ShutdownAction[] = []
shutdownActionsCalled: boolean = false

Methods

  • Returns (void | Promise<void>)[]

  • Parameters

    • callback: (() => void)
        • (): void
        • Returns void

    Returns void

  • Returns void

  • Adds an action to be executed right before app is shut down.

    Parameters

    Returns void

Generated using TypeDoc