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   

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

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: 111 / 123
Referenced in: [show references]

Formerly at http://tinybrain.de/1019746 & http://1019746.tinybrain.de