UNPKG
@atlas-kitchen/adyen-web
Version:
latest (6.15.0)
6.15.0
docs.adyen.com/checkout
atlas-kitchen/adyen-web
@atlas-kitchen/adyen-web
/
dist
/
es
/
components
/
internal
/
ClickToPay
/
services
/
execute-with-timeout.js
3 lines
(2 loc)
•
270 B
JavaScript
View Raw
1
2
3
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