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)

static java.util.Timer doLater_daemon(long delay, final O r) {
  final java.util.Timer timer = new java.util.Timer(true);
  timer.schedule(timerTask(r, timer), delay);
  ret timer;
}

static java.util.Timer doLater_daemon(double delaySeconds, final O r) {
  ret doLater_daemon(toMS(delaySeconds), r);
}

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: 404 / 464
Version history: 5 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)
#1015710 - doLater - install a java.util.Timer