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

14
LINES

< > BotCompany Repo | #1007574 - calcOnConceptChanges

JavaX fragment (include)

static java.util.Timer calcOnConceptChanges(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 = changeCount();
      if (_c != c && !thread.running()) {
        c = _c;
        thread.go(runnable);
      }
    }
  });
}

Author comment

Began life as a copy of #1006110

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: #1007574
Snippet name: calcOnConceptChanges
Eternal ID of this version: #1007574/2
Text MD5: 9464413b9f0d976d314d31b32f236344
Author: stefan
Category: javax / concepts
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-03-27 13:57:00
Source code size: 408 bytes / 14 lines
Pitched / IR pitched: No / No
Views / Downloads: 320 / 347
Version history: 1 change(s)
Referenced in: [show references]