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

5
LINES

< > BotCompany Repo | #1027851 // addToQOrDoNow

JavaX fragment (include)

1  
svoid addToQOrDoNow(Q q, Runnable r) {
2  
  if (r == null) ret;
3  
  if (q == null) r.run();
4  
  else q.add(r);
5  
}

Author comment

Began life as a copy of #1027057

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1027851
Snippet name: addToQOrDoNow
Eternal ID of this version: #1027851/1
Text MD5: e6a0dec5be098d51d248376851b3da06
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-04-15 12:51:44
Source code size: 109 bytes / 5 lines
Pitched / IR pitched: No / No
Views / Downloads: 177 / 219
Referenced in: [show references]