engineering/public/mobile/assets/useLockFn.4d99e11c.js
shengchanzhe 5d7af114f8 init
2023-11-08 20:45:32 +08:00

2 lines
223 B
JavaScript

import{z as a}from"./index.26a6cf84.js";function t(t){const c=a(!1);return{isLock:c,lockFn:async(...a)=>{if(!c.value){c.value=!0;try{const n=await t(...a);return c.value=!1,n}catch(n){throw c.value=!1,n}}}}}export{t as u};