UNPKG

@adyen/adyen-web

Version:

[![npm](https://img.shields.io/npm/v/@adyen/adyen-web.svg)](https://www.npmjs.com/package/@adyen/adyen-web)

3 lines (2 loc) 262 B
function e(e,t,r){let o=null;return Promise.race([e(),(c=t,new Promise((e,t)=>{o=setTimeout(()=>t(r),c)}))]).then(e=>(clearTimeout(o),e)).catch(e=>{throw clearTimeout(o),e});var c}export{e as executeWithTimeout}; //# sourceMappingURL=execute-with-timeout.js.map