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

17
LINES

< > BotCompany Repo | #1003415 // Pausing Backend

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

Libraryless. Click here for Pure Java version (1228L/8K/27K).

1  
!759
2  
3  
// returns false if done, otherwise calls whenDone later
4  
sbool action(S s, fRunnable whenDone) {
5  
  new Matches m;
6  
  
7  
  if "Bot pauses * sec" {
8  
    f int secs = parseInt(m.unq(0));
9  
    thread "Bot sleeps" {
10  
      sleepSeconds(secs);
11  
      call(whenDone);
12  
    }
13  
    true;
14  
  }
15  
  
16  
  throw fail("unknown command: " + quote(s));
17  
}

Author comment

Began life as a copy of #1003384

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1003415
Snippet name: Pausing Backend
Eternal ID of this version: #1003415/1
Text MD5: 8fb2bf9a74c84747bba94005d815f77b
Transpilation MD5: 01af4209107a7f387fcf566f7949f01c
Author: stefan
Category: javax
Type: JavaX source code
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2016-07-02 19:17:09
Source code size: 348 bytes / 17 lines
Pitched / IR pitched: No / No
Views / Downloads: 621 / 1336
Referenced in: [show references]