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).

sS loadPageSilentlyWithTimeout(double timeoutSeconds, S url) {
  ret loadPageSilentlyWithTimeout(url, toMS_int(timeoutSeconds));
}

sS loadPageSilentlyWithTimeout(int timeout, S url) {
  ret loadPageSilentlyWithTimeout(url, timeout);
}

sS loadPageSilentlyWithTimeout(S url, int timeout) ctex {
  url = loadPage_preprocess(url);
  URL _url = new URL(url);
  ret loadPage(
    setURLConnectionTimeouts(_url.openConnection(), timeout),
    _url);
}

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: 515 / 631
Version history: 4 change(s)
Referenced in: [show references]