UNPKG

decocms

Version:

Deco CMS — Self-hostable MCP Gateway for managing AI connections and tools

2 lines (1 loc) • 265 B
function s(){const e=new Map;return{run(t,i){const r=(e.get(t)??Promise.resolve()).then(i),n=r.then(()=>{},()=>{});return e.set(t,n),n.then(()=>{e.get(t)===n&&e.delete(t)}),r},activeKeyCount:()=>e.size}}const u=s();function o(e,t){return u.run(e,t)}export{o as r};