auth.provider API
    Preparing search index...

    Interface LifecycleRegistrar

    Passed to AdapterFactory builders via BuilderContext.lifecycle. Builders that create disposable sub-resources (Redis clients, interval timers, etc.) SHOULD register a cleanup callback here.

    Cleanups are invoked in LIFO order (reverse of registration) during AppHandle.dispose(), with await between each (sequential, not parallel). Errors in individual cleanups are logged and do NOT abort the drain. All cleanup errors accumulate into the AggregateError that AppHandle.dispose() may throw.

    interface LifecycleRegistrar {
        register(cleanup: () => Promise<void>): void;
    }
    Index

    Methods

    Methods

    • Register a cleanup callback. Called in LIFO order during AppHandle.dispose(). The callback MUST return a Promise.

      Parameters

      • cleanup: () => Promise<void>

      Returns void