UNPKG

openclaw

Version:

Multi-channel AI gateway with extensible messaging integrations

3 lines • 350 B
import{AsyncLocalStorage}from"node:async_hooks"; //!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()}export{runWithProcessCleanupBudget as n,getProcessCleanupBudget as t};