1 | static void onFileChange(double seconds, final File file, final long lastModificationSeen, final Runnable r) { |
2 | doEvery_daemon(toMS(seconds), new Runnable { |
3 | long lastMod = lastModificationSeen; |
4 | |
5 | public void run() { |
6 | long mod = file.lastModified(); |
7 | if (mod != lastMod) { |
8 | lastMod = mod; |
9 | call(r); |
10 | } |
11 | } |
12 | }); |
13 | |
14 | call(r); |
15 | } |
Began life as a copy of #1004395
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: | #1010992 |
Snippet name: | onFileChange |
Eternal ID of this version: | #1010992/1 |
Text MD5: | 6a113a440552b0d35c2bc260e880518f |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2017-10-11 02:49:22 |
Source code size: | 383 bytes / 15 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 424 / 448 |
Referenced in: | [show references] |