Libraryless. Click here for Pure Java version (9904L/54K).
1 | static Runnable _topLevelErrorHandling(Runnable r) { |
2 | ifdef LeanMode |
3 | ret r; |
4 | endifdef |
5 | ifndef LeanMode |
6 | if (r == null) null; |
7 | |
8 | // maybe we don't want this anymore. just dm_current_generic() |
9 | O info = _threadInfo(); |
10 | O mod = dm_current_generic(); |
11 | Runnable r2 = r; |
12 | |
13 | if (info != null || mod == null) |
14 | r2 = r { |
15 | temp (AutoCloseable) rcall enter(mod); |
16 | _threadInheritInfo(info); |
17 | r.run(); |
18 | }; |
19 | r2 = rPcall(r2); |
20 | ret r2; |
21 | endifndef |
22 | } |
download show line numbers debug dex old transpilations
Travelled to 15 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, onxytkatvevr, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1009332 |
Snippet name: | _topLevelErrorHandling - also inherits thread info |
Eternal ID of this version: | #1009332/10 |
Text MD5: | 89ba4eb62ba162038fdf7f1ced493bdb |
Transpilation MD5: | f3fb53eb53200b9ad85c9ca01f7dfe6f |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2022-03-13 04:11:01 |
Source code size: | 481 bytes / 22 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 640 / 1764 |
Version history: | 9 change(s) |
Referenced in: | [show references] |