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

16
LINES

< > BotCompany Repo | #1014793 // wrapAsActivity [LIVE version entering the current module]

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (4545L/26K).

static Runnable wrapAsActivity(O r) {
  if (r == null) null;
  Runnable r2 = toRunnable(r);
ifdef LeanMode
  ret r2;
endifdef
ifndef LeanMode
  O mod = dm_current_generic();
  if (mod == null) ret r2;
  ret r {
    AutoCloseable c = cast rcall enter(mod);
    temp c;
    r2.run();
  };
endifndef
}

download  show line numbers  debug dex  old transpilations   

Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1014793
Snippet name: wrapAsActivity [LIVE version entering the current module]
Eternal ID of this version: #1014793/13
Text MD5: fb6eaa51731a8b2e25d072cdbcfb9057
Transpilation MD5: 6a931e1ff3dca22f758cbf0ea7ea8abb
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-10-23 05:14:13
Source code size: 313 bytes / 16 lines
Pitched / IR pitched: No / No
Views / Downloads: 432 / 538
Version history: 12 change(s)
Referenced in: [show references]