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

14
LINES

< > BotCompany Repo | #1007574 // calcOnConceptChanges

JavaX fragment (include)

1  
static java.util.Timer calcOnConceptChanges(int delay, final O runnable, final bool runOnFirstTime) {
2  
  ret doEvery_daemon(delay, 0, new Runnable {
3  
    long c = runOnFirstTime ? -1 : changeCount();
4  
    new SingleThread thread;
5  
    
6  
    public void run() {
7  
      long _c = changeCount();
8  
      if (_c != c && !thread.running()) {
9  
        c = _c;
10  
        thread.go(runnable);
11  
      }
12  
    }
13  
  });
14  
}

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: 408 / 447
Version history: 1 change(s)
Referenced in: [show references]