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

11
LINES

< > BotCompany Repo | #1032879 // flagSleep - provide a flag and sleep until it is up

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

Libraryless. Click here for Pure Java version (4595L/26K).

1  
svoid lambdaMapLike flagSleep(IVF1<Flag> r) {
2  
  new Flag flag;
3  
  r.get(flag);
4  
  flag.waitUntilUp();
5  
}
6  
7  
svoid lambdaMapLike flagSleep(IVF1<Flag> r, double timeout) {
8  
  new Flag flag;
9  
  r.get(flag);
10  
  flag.waitUntilUp(timeout);
11  
}

download  show line numbers  debug dex  old transpilations   

Travelled to 3 computer(s): bhatertpkbcr, mowyntqkapby, mqqgnosmbjvj

No comments. add comment

Snippet ID: #1032879
Snippet name: flagSleep - provide a flag and sleep until it is up
Eternal ID of this version: #1032879/2
Text MD5: 6d0d30a1dca91d1cd21a75d82475cf4a
Transpilation MD5: 6be16ab0f11a251e9fefee06c6c7cf92
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-11-02 02:04:14
Source code size: 237 bytes / 11 lines
Pitched / IR pitched: No / No
Views / Downloads: 192 / 263
Version history: 1 change(s)
Referenced in: [show references]