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

16
LINES

< > BotCompany Repo | #1031800 // startThread [backup]

JavaX fragment (include)

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

Author comment

Began life as a copy of #1004558

download  show line numbers  debug dex  old transpilations   

Travelled to 4 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, vouqrxazstgt

No comments. add comment

Snippet ID: #1031800
Snippet name: startThread [backup]
Eternal ID of this version: #1031800/1
Text MD5: 34ca9376c11dcdfdf3fdd7a987f23629
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-07-01 17:51:34
Source code size: 369 bytes / 16 lines
Pitched / IR pitched: No / No
Views / Downloads: 179 / 178
Referenced in: [show references]