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

22
LINES

< > BotCompany Repo | #1020439 // dm_onSnippetTranspiled - runs in module queue

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

Libraryless. Click here for Pure Java version (12121L/79K).

// r : voidfunc(snippet ID), called in module queue
svoid dm_onSnippetTranspiled(VF1<S> r) {
  dm_requireSnippetUpdatesModule();
  final DynModule m = dm_current_mandatory();
  dm_vmBus_onMessage('snippetUpdate, voidfunc(fL l) {
    switch to m.q();
    S uri = getString(l, 1);
    new Matches m;
    if (swic(uri, "/transpileOK/", m)) {
      S snippetID = fsI(firstIntAsString(m.rest()));
      callF(r, snippetID);
    }
  });
}

svoid dm_onSnippetTranspiled(S snippetID, Runnable r) {
  if (empty(snippetID) || r == null) ret;
  dm_onSnippetTranspiled(voidfunc(S snippetID2) {
    if (sameSnippetID(snippetID, snippetID2))
      r.run();
  });
}

download  show line numbers  debug dex  old transpilations   

Travelled to 8 computer(s): bhatertpkbcr, cfunsshuasjs, gwrvuhgaqvyk, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1020439
Snippet name: dm_onSnippetTranspiled - runs in module queue
Eternal ID of this version: #1020439/6
Text MD5: 61ec05be45c0c110bf807012f3ee7968
Transpilation MD5: 2945231da632eded7a44c11fd8dbc82c
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-06-14 03:31:58
Source code size: 671 bytes / 22 lines
Pitched / IR pitched: No / No
Views / Downloads: 310 / 369
Version history: 5 change(s)
Referenced in: [show references]