Member Junction
    Preparing search index...

    Function WithoutDiagnosticCapture

    • Executes fn with diagnostic capture suppressed for both synchronous and async work inside the current context. Prevents infinite recursion when diagnostic writers perform database or logging operations.

      With a context provider registered, suppression lives only in the async-local context, so other requests keep capturing. Without one, a process-wide counter suppresses capture until fn settles.

      Type Parameters

      • T

      Parameters

      • fn: () => T

      Returns T