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

5
LINES

< > BotCompany Repo | #1028116 // cancelThreadAndWait

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

Libraryless. Click here for Pure Java version (2543L/16K).

1  
svoid cancelThreadAndWait(Thread t, int interval default 10) {
2  
  if (t == null) ret;
3  
  cancelThread(t);
4  
  waitUntilThreadNewOrTerminated(t, interval);
5  
}

Author comment

Began life as a copy of #1004549

download  show line numbers  debug dex  old transpilations   

Travelled to 7 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv

No comments. add comment

Snippet ID: #1028116
Snippet name: cancelThreadAndWait
Eternal ID of this version: #1028116/3
Text MD5: aacda6b9a0ee2d63c519280156d8e55f
Transpilation MD5: e2c6af42ccda52573f750027718b4a32
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-05-20 13:13:30
Source code size: 156 bytes / 5 lines
Pitched / IR pitched: No / No
Views / Downloads: 254 / 361
Version history: 2 change(s)
Referenced in: [show references]