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

7
LINES

< > BotCompany Repo | #1005526 // lowerPriorityThread - start thread with slightly lower priority (NORM_PRIORITY-1)

JavaX fragment (include)

// runnable = Runnable or String (method name)
static Thread lowerPriorityThread(O runnable) {
  Thread thread = newThread(runnable);
  thread.setPriority(Thread.NORM_PRIORITY-1); 
  startThread(thread);
  ret thread;
}

download  show line numbers  debug dex  old transpilations   

Travelled to 15 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, ddnzoavkxhuk, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1005526
Snippet name: lowerPriorityThread - start thread with slightly lower priority (NORM_PRIORITY-1)
Eternal ID of this version: #1005526/2
Text MD5: 87b3631546b0710c04a5a53eca47b2c7
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-10-14 00:14:20
Source code size: 225 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 592 / 613
Version history: 1 change(s)
Referenced in: [show references]