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

16
LINES

< > BotCompany Repo | #1010525 // calcOnConceptChangesInOtherProgram

JavaX fragment (include)

static java.util.Timer calcOnConceptChangesInOtherProgram(fS programID, int delay, final O runnable, final bool runOnFirstTime) {
  final File conceptsFile = conceptsFile(programID);
  
  ret doEvery_daemon(delay, 0, new Runnable {
    FileStatus status = runOnFirstTime ? null : fileStatus(conceptsFile);
    new SingleThread thread;
    
    public void run() {
      FileStatus s = fileStatus(conceptsFile);
      if (neq(s, status) && !thread.running()) {
        status = s;
        thread.go(runnable);
      }
    }
  });
}

Author comment

Began life as a copy of #1009268

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: #1010525
Snippet name: calcOnConceptChangesInOtherProgram
Eternal ID of this version: #1010525/1
Text MD5: 010d550e280532e81443aa9f7df06dc7
Author: stefan
Category: javax / concepts
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-09-19 21:44:41
Source code size: 545 bytes / 16 lines
Pitched / IR pitched: No / No
Views / Downloads: 454 / 481
Referenced in: [show references]