UNPKG

openclaw

Version:

Multi-channel AI gateway with extensible messaging integrations

15 lines (14 loc) • 318 B
//#region src/infra/non-fatal-cleanup.ts /** Run cleanup and swallow failures after invoking the optional error hook. */ async function runBestEffortCleanup(e) { try { return await e.cleanup(); } catch (t) { try { e.onError?.(t); } catch {} return; } } //#endregion export { runBestEffortCleanup as t };