Libraryless. Click here for Pure Java version (2850L/17K).
1 | scope tempNewPing_addToStack |
2 | |
3 | asclass #StackEntry implements Runnable {
|
4 | Runnable previous; |
5 | |
6 | *(Runnable *previous) {}
|
7 | |
8 | abstract void impl(); |
9 | |
10 | run {
|
11 | impl(); |
12 | callF(previous); |
13 | } |
14 | } |
15 | |
16 | static AutoCloseable tempNewPing_addToStack(Thread thread default currentThread(), Runnable r) {
|
17 | if (r == null) null; |
18 | var tl = newPing_actionTL(); |
19 | var old = tl.get(); |
20 | tl.set(new StackEntry(old) {
|
21 | void impl { r.run(); }
|
22 | }); |
23 | ret () -> { tl.set(old); };
|
24 | } |
25 | |
26 | end scope |
download show line numbers debug dex old transpilations
Travelled to 4 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1031415 |
| Snippet name: | tempNewPing_addToStack |
| Eternal ID of this version: | #1031415/7 |
| Text MD5: | 412cd86ea15c4822bc892699e9c2bf46 |
| Transpilation MD5: | 348e5a8f4c671e9124f038f71cbf31ea |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2021-06-20 05:02:07 |
| Source code size: | 505 bytes / 26 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 460 / 604 |
| Version history: | 6 change(s) |
| Referenced in: | [show references] |