Skip to main content

src/services/utils/cleanupHandlers

Utilities for validating cleanup handlers returned by preload-managed subscriptions.

Remarksโ€‹

Renderer services frequently subscribe to IPC-driven event streams exposed by the preload bridge. These subscriptions are expected to return cleanup functions but in practice may yield unexpected values when bridges are misconfigured or when channel contracts drift. The helpers in this module enforce consistent validation and error handling across services while allowing each caller to customize diagnostics.

Interfacesโ€‹

Functionsโ€‹