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

15
LINES

< > BotCompany Repo | #1019746 // doEvery_daemon_highPriority - not perfect yet (should probably set priority earlier)

JavaX fragment (include)

// firstDelay = delay
static FixedRateTimer doEvery_daemon_highPriority(long delay, final O r) {
  ret doEvery_daemon_highPriority(delay, delay, r);
}

static FixedRateTimer doEvery_daemon_highPriority(long delay, long firstDelay, fO r) {
  ret doEvery_daemon(delay, firstDelay, r {
    highThreadPriority();
    callF(r);
  });
}

static FixedRateTimer doEvery_daemon_highPriority(double delaySeconds, final O r) {
  ret doEvery_daemon_highPriority(toMS(delaySeconds), r);
}

Author comment

Began life as a copy of #1006482

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1019746
Snippet name: doEvery_daemon_highPriority - not perfect yet (should probably set priority earlier)
Eternal ID of this version: #1019746/1
Text MD5: 594ff243cc22007145c3cde6a7abdf92
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-11-24 16:52:41
Source code size: 489 bytes / 15 lines
Pitched / IR pitched: No / No
Views / Downloads: 239 / 282
Referenced in: [show references]