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

6
LINES

< > BotCompany Repo | #1025192 // runWithExecutor

JavaX fragment (include)

1  
svoid runWithExecutor(Runnable r, Executor e) {
2  
  if (e == null)
3  
    r.run();
4  
  else
5  
    e.execute(r);
6  
}

download  show line numbers  debug dex  old transpilations   

Travelled to 6 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1025192
Snippet name: runWithExecutor
Eternal ID of this version: #1025192/1
Text MD5: d6e2862e5ae89c196cc422d17197b856
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-09-12 22:44:11
Source code size: 109 bytes / 6 lines
Pitched / IR pitched: No / No
Views / Downloads: 227 / 254
Referenced in: [show references]