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

21
LINES

< > BotCompany Repo | #1004558 // startThread

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

Libraryless. Click here for Pure Java version (4308L/25K).

1  
static Thread startThread(O runnable) {
2  
  ret startThread(defaultThreadName(), runnable);
3  
}
4  
5  
static Thread startThread(S name, Runnable runnable) {
6  
  runnable = wrapAsActivity(runnable);
7  
  ret startThread(newThread(runnable, name));
8  
}
9  
10  
static Thread startThread(S name, O runnable) {
11  
  runnable = wrapAsActivity(runnable);
12  
  ret startThread(newThread(toRunnable(runnable), name));
13  
}
14  
15  
static Thread startThread(Thread t) {
16  
  ifndef LeanMode
17  
  _registerThread(t);
18  
  endifndef
19  
  t.start();
20  
  ret t;
21  
}

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1004558
Snippet name: startThread
Eternal ID of this version: #1004558/12
Text MD5: e8835bcc27967a7ea2f2fd096b4fcadf
Transpilation MD5: 69c52d585b97036457897a8977bd9057
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-10-07 03:53:24
Source code size: 517 bytes / 21 lines
Pitched / IR pitched: No / No
Views / Downloads: 791 / 926
Version history: 11 change(s)
Referenced in: [show references]