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

16
LINES

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

JavaX fragment (include)

static Thread startThread(O runnable) {
  ret startThread(defaultThreadName(), runnable);
}

static Thread startThread(S name, O runnable) {
  runnable = wrapAsActivity(runnable);
  ret startThread(newThread(toRunnable(runnable), name));
}

static Thread startThread(Thread t) {
  ifndef LeanMode
  _registerThread(t);
  endifndef
  t.start();
  ret t;
}

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: 178 / 177
Referenced in: