UNPKG

openclaw

Version:

Multi-channel AI gateway with extensible messaging integrations

15 lines (14 loc) • 341 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) { try { params.onError?.(error); } catch {} return; } } //#endregion export { runBestEffortCleanup as t };