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

15
LINES

< > BotCompany Repo | #1019938 // doEvery_maxPriority - not perfect yet (should set priority before first call)

JavaX fragment (include)

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

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

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

Author comment

Began life as a copy of #1019746

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1019938
Snippet name: doEvery_maxPriority - not perfect yet (should set priority before first call)
Eternal ID of this version: #1019938/1
Text MD5: b9bd1fde76fc077d5b23bcd4353b011f
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-12-01 17:00:48
Source code size: 448 bytes / 15 lines
Pitched / IR pitched: No / No
Views / Downloads: 321 / 335
Referenced in: [show references]