1 | static <A> A androidEvalInUIThread(final F0<A> f) { |
2 | final new Var<A> v; |
3 | final new Var<Throwable> error; |
4 | androidUI_wait(r { |
5 | try { |
6 | v.set(callF(f)); |
7 | } catch e { |
8 | error.set(e); |
9 | } |
10 | }); |
11 | if (error.has()) throw rethrow(error!); else ret v!; |
12 | } |
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1014860 |
Snippet name: | androidEvalInUIThread |
Eternal ID of this version: | #1014860/3 |
Text MD5: | 542e15ec9af73f11799468cf3d9e890a |
Author: | stefan |
Category: | javax / android |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-05-05 17:37:26 |
Source code size: | 277 bytes / 12 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 420 / 448 |
Version history: | 2 change(s) |
Referenced in: | [show references] |