Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

15
LINES

< > BotCompany Repo | #1014869 // androidUI_wait

JavaX fragment (include)

1  
static void androidUI_wait(fO r) {
2  
  final new Flag done;
3  
  androidUI_noWait(r {
4  
    try {
5  
      callF(r);
6  
    } finally {
7  
      done.raise();
8  
    }
9  
  });
10  
  done.waitUntilUp();
11  
}
12  
13  
static <A> A androidUI_wait(F0<A> f) {
14  
  ret androidEvalInUIThread(f);
15  
}

Author comment

Began life as a copy of #1004465

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: #1014869
Snippet name: androidUI_wait
Eternal ID of this version: #1014869/3
Text MD5: 6f8171057256fc01aba0f0c3a0d7a35d
Author: stefan
Category:
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-05-05 23:04:26
Source code size: 266 bytes / 15 lines
Pitched / IR pitched: No / No
Views / Downloads: 425 / 462
Version history: 2 change(s)
Referenced in: [show references]