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

9
LINES

< > BotCompany Repo | #1010682 // doLater_daemon - install a java.util.Timer as daemon [not keeping the VM up]

JavaX fragment (include)

1  
static java.util.Timer doLater_daemon(long delay, final O r) {
2  
  final java.util.Timer timer = new java.util.Timer(true);
3  
  timer.schedule(timerTask(r, timer), delay);
4  
  ret timer;
5  
}
6  
7  
static java.util.Timer doLater_daemon(double delaySeconds, final O r) {
8  
  ret doLater_daemon(toMS(delaySeconds), r);
9  
}

Author comment

Began life as a copy of #1006482

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: #1010682
Snippet name: doLater_daemon - install a java.util.Timer as daemon [not keeping the VM up]
Eternal ID of this version: #1010682/6
Text MD5: 4e005fe06565288de00b6f4a8cfbb4b1
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-12-04 17:21:36
Source code size: 310 bytes / 9 lines
Pitched / IR pitched: No / No
Views / Downloads: 466 / 532
Version history: 5 change(s)
Referenced in: [show references]