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

6
LINES

< > BotCompany Repo | #1022699 // tempShowFileSizeProgress

JavaX fragment (include)

1  
static AutoCloseable tempShowFileSizeProgress(IProgressShower p, File f, O... _) {
2  
  if (p == null || f == null) null;
3  
  ret timerAsAutocloseable(doEvery(optPar interval(_, 100), r {
4  
    p.setValue(fileSize(f));
5  
  }));
6  
}

download  show line numbers  debug dex  old transpilations   

Travelled to 7 computer(s): bhatertpkbcr, cfunsshuasjs, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1022699
Snippet name: tempShowFileSizeProgress
Eternal ID of this version: #1022699/2
Text MD5: bce5710919db4fb3ce2c997021763989
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-03-31 19:53:47
Source code size: 225 bytes / 6 lines
Pitched / IR pitched: No / No
Views / Downloads: 301 / 340
Version history: 1 change(s)
Referenced in: [show references]