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

14
LINES

< > BotCompany Repo | #1009268 // calcOnConceptChangesInOtherModule

JavaX fragment (include)

static java.util.Timer calcOnConceptChangesInOtherModule(fO module, int delay, final O runnable, final bool runOnFirstTime) {
  ret doEvery_daemon(delay, 0, new Runnable {
    long c = runOnFirstTime ? -1 : changeCount();
    new SingleThread thread;
    
    public void run() {
      long _c = (long) call(module, 'changeCount);
      if (_c != c && !thread.running()) {
        c = _c;
        thread.go(runnable);
      }
    }
  });
}

Author comment

Began life as a copy of #1007574

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1009268
Snippet name: calcOnConceptChangesInOtherModule
Eternal ID of this version: #1009268/1
Text MD5: 2d8ff72d575d97599318d3a0f8202b1c
Author: stefan
Category: javax / concepts
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-07-20 00:34:03
Source code size: 452 bytes / 14 lines
Pitched / IR pitched: No / No
Views / Downloads: 428 / 453
Referenced in: [show references]