Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

15
LINES

< > BotCompany Repo | #1017059 // Test Endless Loop In Evaluated Code

JavaX source code (desktop) [tags: use-pretranspiled] - run with: x30.jar

Download Jar. Uses 3874K of libraries. Click here for Pure Java version (7478L/55K).

!7

set flag cancelThread_verbose.

p-exp {
  int timeout = 5000;
  fO o = evalJava_prep2(evalJava_prep("while licensed {}"));
  print("o = " + identityHashCode(o));
  print(identityHashCode(ping_actions) + " / " + identityHashCode(getOpt(o, 'ping_actions));
  O result = null;
  pcall {
    result = evalWithTimeoutOrNull(timeout, func { evalJava_main2(o) });
  }
  cleanUp(o); // This actually stops the thread
}

download  show line numbers  debug dex  old transpilations   

Travelled to 15 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, onxytkatvevr, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1017059
Snippet name: Test Endless Loop In Evaluated Code
Eternal ID of this version: #1017059/7
Text MD5: 6dae19a5610638ae7ff494c1d6f595c9
Transpilation MD5: b6d2f96cf489b8dffb754435eaafcdf2
Author: stefan
Category: javax
Type: JavaX source code (desktop)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-07-11 16:40:51
Source code size: 428 bytes / 15 lines
Pitched / IR pitched: No / No
Views / Downloads: 284 / 682
Version history: 6 change(s)
Referenced in: [show references]