Transpiled version (9649L) is out of date.
1 | static void swingAndWait(Runnable r) ctex { |
2 | if (isAWTThread()) |
3 | r.run(); |
4 | else { |
5 | r = addThreadInfoToRunnable(r); |
6 | executingSwingCode(r); |
7 | EventQueue.invokeAndWait(r); |
8 | } |
9 | } |
10 | |
11 | static O swingAndWait(O f) { |
12 | if (isAWTThread()) |
13 | ret callF(f); |
14 | else { |
15 | new Var result; |
16 | swingAndWait(r { |
17 | result.set(callF(f)); |
18 | }); |
19 | ret result!; |
20 | } |
21 | } |
download show line numbers debug dex old transpilations
Travelled to 25 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, ddnzoavkxhuk, ekrmjmnbrukm, elmgxqgtpvxh, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mowyntqkapby, mqqgnosmbjvj, onxytkatvevr, podlckwnjdmb, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, uelavcdoioby, vouqrxazstgt, whxojlpjdney, wtqryiryparv, xrpafgyirdlv, yanjaxplzisb
No comments. add comment
Snippet ID: | #1003445 |
Snippet name: | swingAndWait - (almost) same as invokeAndWait |
Eternal ID of this version: | #1003445/4 |
Text MD5: | b23c1c785e8dfcdaff78b2ff538821e0 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2022-11-26 18:11:20 |
Source code size: | 386 bytes / 21 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 730 / 1785 |
Version history: | 3 change(s) |
Referenced in: | [show references] |