@runloop/agent-axon-client
    Preparing search index...

    Function runDisconnectHook

    • Runs an optional onDisconnect callback with error isolation.

      If the callback throws, the error is logged and forwarded to the provided error handler rather than propagating to the caller.

      Parameters

      • fn: (() => void | Promise<void>) | undefined

        The disconnect callback to invoke, or undefined to skip.

      • log: LogFn

        Logger function for diagnostic output.

      • onError: (error: unknown) => void

        Error handler to receive any thrown errors.

      Returns Promise<void>