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

5
LINES

< > BotCompany Repo | #1027851 // addToQOrDoNow

JavaX fragment (include)

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

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: 176 / 218
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)