UNPKG

openclaw

Version:

Multi-channel AI gateway with extensible messaging integrations

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