1 | svoid runInterruptibly(final VF1<Runnable> r, O... _) { |
2 | final new Var<Thread> thread; |
3 | startThread((S) optPar(_, 'threadName), r { |
4 | final Thread t = currentThread(); |
5 | callF(r, r { cancelAndInterruptThread(t) }); |
6 | }); |
7 | } |
download show line numbers debug dex old transpilations
Travelled to 9 computer(s): bhatertpkbcr, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1019879 |
Snippet name: | runInterruptibly - run in a new thread & provide an interruption function |
Eternal ID of this version: | #1019879/6 |
Text MD5: | 5d050e386a2943f6cd905c716b0cda3d |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-11-30 18:21:40 |
Source code size: | 234 bytes / 7 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 330 / 373 |
Version history: | 5 change(s) |
Referenced in: | [show references] |