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

15
LINES

< > BotCompany Repo | #1005738 // loadPageSilentlyWithTimeout

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (3804L/25K).

1  
sS loadPageSilentlyWithTimeout(double timeoutSeconds, S url) {
2  
  ret loadPageSilentlyWithTimeout(url, toMS_int(timeoutSeconds));
3  
}
4  
5  
sS loadPageSilentlyWithTimeout(int timeout, S url) {
6  
  ret loadPageSilentlyWithTimeout(url, timeout);
7  
}
8  
9  
sS loadPageSilentlyWithTimeout(S url, int timeout) ctex {
10  
  url = loadPage_preprocess(url);
11  
  URL _url = new URL(url);
12  
  ret loadPage(
13  
    setURLConnectionTimeouts(_url.openConnection(), timeout),
14  
    _url);
15  
}

Author comment

Began life as a copy of #1001657

download  show line numbers  debug dex  old transpilations   

Travelled to 16 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, ddnzoavkxhuk, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv

No comments. add comment

Snippet ID: #1005738
Snippet name: loadPageSilentlyWithTimeout
Eternal ID of this version: #1005738/5
Text MD5: 8bc67d98ddf365f581f8750ecfdd05e6
Transpilation MD5: 3484dddf53917b59b7e8d878fe0d013c
Author: stefan
Category:
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-04-20 23:13:02
Source code size: 460 bytes / 15 lines
Pitched / IR pitched: No / No
Views / Downloads: 456 / 548
Version history: 4 change(s)
Referenced in: [show references]