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

7
LINES

< > BotCompany Repo | #1018863 // dm_rEnter - code fragment for entering module

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

Libraryless. Click here for Pure Java version (11516L/75K).

static F0<AutoCloseable> dm_rEnter(DynModule mod default dm_current()) {
  ret mod == null ? null : func -> AutoCloseable { mod.enter() };
}

static Runnable dm_rEnter(DynModule mod default dm_current(), Runnable r) {
  ret mod == null || r == null ? r : r { temp mod.enter(); r.run(); };
}

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1018863
Snippet name: dm_rEnter - code fragment for entering module
Eternal ID of this version: #1018863/3
Text MD5: ec3c96517e912b33e94b1240bef59125
Transpilation MD5: 48d2ae00a1f22ccbd26f09482af98514
Author: stefan
Category: javax / stefan's os
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-04-17 16:24:39
Source code size: 296 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 404 / 495
Version history: 2 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)
#1033006 - dm_tempEnter