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

12
LINES

< > BotCompany Repo | #1009333 // runSubBot - run a bot program without sleeping main thread and readLine

JavaX fragment (include)

1  
static Class runSubBot(S id) {
2  
  Class c = hotwire(id);
3  
  setOpt(c, 'sleep_noSleep, true);
4  
  setOpt(c, 'readLine_noReadLine, true);
5  
  try {
6  
    callMain(c);
7  
  } catch e {
8  
    if (!eq(getInnerMessage(e), "nosleep"))
9  
      printStackTrace(e);
10  
  }
11  
  ret c;
12  
}

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: 508 / 552
Version history: 1 change(s)
Referenced in: [show references]