Files
qhmes/web-dist/js/useLockFn-By3bmCtJ.js
2026-06-16 18:19:57 +08:00

2 lines
462 B
Java

var c=(n,r,t)=>new Promise((a,o)=>{var s=e=>{try{u(t.next(e))}catch(f){o(f)}},l=e=>{try{u(t.throw(e))}catch(f){o(f)}},u=e=>e.done?a(e.value):Promise.resolve(e.value).then(s,l);u((t=t.apply(n,r)).next())});import{u as i,r as v}from"./vue-vendor-DNhG1Cve.js";function m(n){const r=v(!1);return function(...t){return c(this,null,function*(){if(!i(r)){r.value=!0;try{const a=yield n(...t);return r.value=!1,a}catch(a){throw r.value=!1,a}}})}}export{m as useLockFn};