Heino / utils /timeout.js
Mervvebulx's picture
Heino bot dosyaları güncellendi
1c25da5 verified
Raw History Blame Contribute Delete
1.61 kB
function a58_0x5b10(_0x58f5ca,_0x374779){_0x58f5ca=_0x58f5ca-0xf7;const _0x4fec34=a58_0x4fec();let _0x5b1077=_0x4fec34[_0x58f5ca];return _0x5b1077;}const a58_0xaa0f74=a58_0x5b10;(function(_0x1db417,_0x2bb4d3){const _0x14d228=a58_0x5b10,_0x16fd28=_0x1db417();while(!![]){try{const _0x1ecd07=parseInt(_0x14d228(0x103))/0x1+-parseInt(_0x14d228(0x100))/0x2*(parseInt(_0x14d228(0xfa))/0x3)+-parseInt(_0x14d228(0xfc))/0x4+parseInt(_0x14d228(0xf8))/0x5+parseInt(_0x14d228(0x104))/0x6*(-parseInt(_0x14d228(0x105))/0x7)+-parseInt(_0x14d228(0x102))/0x8+parseInt(_0x14d228(0x101))/0x9;if(_0x1ecd07===_0x2bb4d3)break;else _0x16fd28['push'](_0x16fd28['shift']());}catch(_0x47bcd3){_0x16fd28['push'](_0x16fd28['shift']());}}}(a58_0x4fec,0xb1b69));export class TimeoutError extends Error{constructor(_0xe4aeff){const _0x1bcb3d=a58_0x5b10;super(_0xe4aeff),this[_0x1bcb3d(0xfd)]=_0x1bcb3d(0xf9);}}function a58_0x4fec(){const _0x5f1b7d=['3876676HOkZaQ','name','finally','ms\x20içinde\x20tamamlanamadı.','62PYncna','8581572tLmvnn','4652720xSipKW','1452620TeEURu','6xWitPV','4481827NlqAZK','race','5655035dhwVWe','TimeoutError','59826WZuRpb','işlem'];a58_0x4fec=function(){return _0x5f1b7d;};return a58_0x4fec();}export function withTimeout(_0x273594,_0x5a876d,_0x4332c7=a58_0xaa0f74(0xfb)){const _0x5e2c00=a58_0xaa0f74;let _0xdf554;const _0x4b4eee=new Promise((_0x4b8f06,_0x1c8390)=>{const _0x1e7bd6=a58_0x5b10;_0xdf554=setTimeout(()=>_0x1c8390(new TimeoutError(_0x4332c7+'\x20'+_0x5a876d+_0x1e7bd6(0xff))),_0x5a876d);});return Promise[_0x5e2c00(0xf7)]([_0x273594,_0x4b4eee])[_0x5e2c00(0xfe)](()=>clearTimeout(_0xdf554));}