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

10
LINES

< > BotCompany Repo | #1019005 // rstWithPostDelay - ReliableSingleThread with a delay after execution

JavaX fragment (include)

1  
static ReliableSingleThread rstWithPostDelay(final int delay, final Runnable r) {
2  
  ret ReliableSingleThread(r {
3  
    pcallF(r);
4  
    sleep(delay);
5  
  });
6  
}
7  
8  
static ReliableSingleThread rstWithPostDelay(double seconds, Runnable r) {
9  
  ret rstWithPostDelay(toMS_int(seconds), r);
10  
}

Author comment

Began life as a copy of #1016128

download  show line numbers  debug dex  old transpilations   

Travelled to 12 computer(s): bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1019005
Snippet name: rstWithPostDelay - ReliableSingleThread with a delay after execution
Eternal ID of this version: #1019005/1
Text MD5: 41e1749187eb327208a01991a3c46f81
Author: stefan
Category: javax / threading
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-10-20 14:21:30
Source code size: 286 bytes / 10 lines
Pitched / IR pitched: No / No
Views / Downloads: 382 / 423
Referenced in: [show references]