Axinom Mosaic Libraries
    Preparing search index...

    An interface that represents a middleware object to be used to register messaging actions that are executed on app shutdown, e.g. PostgreSQL pool shutdown. An example of Mosaic implementation:

    import { setupShutdownActions, Logger } from '@axinom/mosaic-service-common';
    //...
    const shutdownActions = setupShutdownActions(app, logger);
    interface DbShutdownActions {
        push(action: () => void | Promise<void>): void;
    }
    Index

    Methods

    Methods

    • Parameters

      • action: () => void | Promise<void>

      Returns void