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

13
LINES

< > BotCompany Repo | #1005527 // newThread - make BetterThread

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (3021L/18K).

1  
// runnable = Runnable or String (method name)
2  
static Thread newThread(O runnable) {
3  
  ret new BetterThread(_topLevelErrorHandling(toRunnable(runnable)));
4  
}
5  
6  
static Thread newThread(O runnable, S name) {
7  
  if (name == null) name = defaultThreadName();
8  
  ret new BetterThread(_topLevelErrorHandling(toRunnable(runnable)), name);
9  
}
10  
11  
static Thread newThread(S name, O runnable) {
12  
  ret newThread(runnable, name);
13  
}

Author comment

Began life as a copy of #1005526

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1005527
Snippet name: newThread - make BetterThread
Eternal ID of this version: #1005527/9
Text MD5: 5ff0df8443f61f72023c0ebbeab338a4
Transpilation MD5: 61250e9a02fe6a28542c17f2c3bfcfb5
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-06-25 13:01:11
Source code size: 423 bytes / 13 lines
Pitched / IR pitched: No / No
Views / Downloads: 683 / 789
Version history: 8 change(s)
Referenced in: [show references]