import{r as n,u}from"./vendor-@vue.54cfd5db.js";function o(t){const e=n(!1);return async function(...a){if(!u(e)){e.value=!0;try{const r=await t(...a);return e.value=!1,r}catch(r){throw e.value=!1,r}}}}export{o as useLockFn};
