Libraryless. Click here for Pure Java version (2852L/18K).
static Thread startThreadRegisteredInCollection(Cl<Thread> collection, S name, Runnable r) { if (r == null) null; Thread t = newThread(name, r { try { r.run(); } finally { remove(collection, currentThread()); } }); add(collection, t); startThread(t); ret t; }
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: | #1029502 |
| Snippet name: | startThreadRegisteredInCollection |
| Eternal ID of this version: | #1029502/5 |
| Text MD5: | 2d8bb327ffecde3cae846c288298b08c |
| Transpilation MD5: | 284e0e676cb9e780cac8078963bdfe32 |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2020-08-16 18:35:39 |
| Source code size: | 307 bytes / 13 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 450 / 594 |
| Version history: | 4 change(s) |
| Referenced in: | [show references] |