OverviewFilesCommitsIssuesDocsReleasesPeers

keet-cli / deobfuscated / lib / tasks / testing / slow.js

35 lines · javascript ref:
const _0x11ff2f=(function(){let _0x4b03ac=!![];return function(_0x4ce6e5,_0x4fbe1d){const _0x441886=_0x4b03ac?function(){if(_0x4fbe1d){const _0x26d176=_0x4fbe1d.apply(_0x4ce6e5,arguments);return _0x4fbe1d=null,_0x26d176;}}:function(){};return _0x4b03ac=![],_0x441886;};}()),_0x37d2a2=_0x11ff2f(this,function(){_0x3e08e1={_0x4f359b:0x274},_0x53e5c3={_0x2c58be:0x65};return _0x37d2a2.toString().search("(((.+)+)+)+$").toString().constructor(_0x37d2a2).search("(((.+)+)+)+$");});
_0x37d2a2();
const rrp=require('resolve-reject-promise'),{
  Task}
=require('../task');
module.exports=class TestSlowTask extends Task{
  constructor(_0x43175d){
    _0xa08019={
      _0x406901:0x327},_0x38af20={
      _0x10ba12:0x28,_0x19c3df:0x16f}
    ;
    super(_0x43175d);
    this._timer=null,this._resolve=null;
    this._reject=null;
  }
._close(){
  _0x4f3fbc={
    _0x1f7a17:0x40f,_0x25ccdc:0x1b7,_0x2aacc7:0xfa},_0x18e6e0={
    _0x39dbb2:0x12a,_0xfb6e57:0x132}
  ;
  if(this._timer)clearTimeout(this.timer);
  this._reject(new Error("Slow\x20task\x20was closed"));
}
async._run(){
  _0x534024={
    _0x522a77:0x37e,_0xdbf776:0xaa,_0x463686:0x151},_0x2be759={
    _0x1686c6:0x12,_0x8e5de4:0x3d2,_0x5b3904:0xf},{
    resolve:_0x482f20,reject:_0x5cbcbc,promise:_0x1ff649}
  =rrp();
  this._resolve=_0x482f20,this._reject=_0x5cbcbc,this._timer=setTimeout(()=>_0x482f20(),0x3e8);
  await _0x1ff649;
}
}
;