static Class runSubBot(S id) { Class c = hotwire(id); setOpt(c, 'sleep_noSleep, true); setOpt(c, 'readLine_noReadLine, true); try { callMain(c); } catch e { if (!eq(getInnerMessage(e), "nosleep")) printStackTrace(e); } ret c; }
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1009333 |
Snippet name: | runSubBot - run a bot program without sleeping main thread and readLine |
Eternal ID of this version: | #1009333/2 |
Text MD5: | c9ac9c69ba21e11e04b15629ae01ea61 |
Author: | stefan |
Category: | javax / talking robots |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2017-11-13 23:43:39 |
Source code size: | 266 bytes / 12 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 506 / 549 |
Version history: | 1 change(s) |
Referenced in: | [show references] |