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

9
LINES

< > BotCompany Repo | #1025191 // defaultSleeper - one thread per sleep request

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (9691L/54K).

1  
static ISleeper defaultSleeper() {
2  
  ret new ISleeper {
3  
    public Sleeping doLater(Timestamp targetTime, Runnable r) {
4  
      ret new MultiSleeper().doLater(targetTime, r);
5  
    }
6  
    
7  
    close {}
8  
  };
9  
}

download  show line numbers  debug dex  old transpilations   

Travelled to 6 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1025191
Snippet name: defaultSleeper - one thread per sleep request
Eternal ID of this version: #1025191/7
Text MD5: 79f4beda3c69681a7f13bdb90d283409
Transpilation MD5: 21c06e7f882d08480f91db24c1f7103b
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-11-28 21:17:19
Source code size: 211 bytes / 9 lines
Pitched / IR pitched: No / No
Views / Downloads: 270 / 391
Version history: 6 change(s)
Referenced in: [show references]