openclaw
Version:
Multi-channel AI gateway with extensible messaging integrations
12 lines (11 loc) • 403 B
JavaScript
import { AsyncLocalStorage } from "node:async_hooks";
//#region src/process/supervisor/cleanup-budget.ts
const cleanupBudget = new AsyncLocalStorage();
function getProcessCleanupBudget() {
return cleanupBudget.getStore();
}
function runWithProcessCleanupBudget(e, t) {
return e ? cleanupBudget.run(e, t) : t();
}
//#endregion
export { runWithProcessCleanupBudget as n, getProcessCleanupBudget as t };