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

10
LINES

< > BotCompany Repo | #1019076 // dm_afterVisualize - works on current module

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

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

svoid dm_afterVisualize(Runnable r) {
  DynModule m = dm_current_mandatory();
  dm_ownResource(vmBus_onMessage moduleVisualized(voidfunc(O module) {
    O mm = dm_resolveModule(module);
    if (mm == m) {
      temp m.enter();
      callF(r);
    }
  }));
}

Author comment

Began life as a copy of #1019075

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1019076
Snippet name: dm_afterVisualize - works on current module
Eternal ID of this version: #1019076/5
Text MD5: 0012124bc5b035177c18352507ca9751
Transpilation MD5: f723386b45a40753c4699763884eae56
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-03-25 16:24:27
Source code size: 266 bytes / 10 lines
Pitched / IR pitched: No / No
Views / Downloads: 401 / 486
Version history: 4 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)
#1020033 - dm_afterUnvisualize
#1030779 - dm_onAnyModuleVisualized