Member Junction
    Preparing search index...

    Variable RunDetachedDiagnosticContextConst

    RunDetachedDiagnosticContext: <T>(fn: () => T) => T = RunDetachedFromDiagnosticContext

    Type Declaration

      • <T>(fn: () => T): T
      • Runs fn detached from any active request/session DiagnosticContext. Use when spawning fire-and-forget background timers or daemons from inside a request so they do not keep the request's diagnostic session context alive indefinitely.

        Type Parameters

        • T

        Parameters

        • fn: () => T

        Returns T