static S loadPageWithTimeout(long timeout, S url) { ret loadPageWithTimeout(url, timeout); } static S loadPageWithTimeout(S url, long timeout) ctex { ping(); url = loadPage_preprocess(url); print("Loading with timeout: " + hideCredentials(url)); URL _url = new URL(url); ret loadPage( setURLConnectionTimeouts(_url.openConnection(), timeout), _url); } sS loadPageWithTimeout(S url, double timeoutSeconds) { ret loadPageWithTimeout(url, toMS(timeoutSeconds)); } sS loadPageWithTimeout(double timeoutSeconds, S url) { ret loadPageWithTimeout(url, timeoutSeconds); }
Began life as a copy of #1000879
download show line numbers debug dex old transpilations
Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv
No comments. add comment
Snippet ID: | #1001657 |
Snippet name: | loadPageWithTimeout |
Eternal ID of this version: | #1001657/7 |
Text MD5: | 7549c2fc40324c1e6354d323ba553272 |
Author: | stefan |
Category: | |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2020-07-01 11:20:23 |
Source code size: | 610 bytes / 21 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 679 / 951 |
Version history: | 6 change(s) |
Referenced in: | #1002427 - Accellerating 629 (SPIKE) #1005738 - loadPageSilentlyWithTimeout #1006654 - Standard functions list 2 (LIVE, continuation of #761) #1014303 - loadPageWithTimeoutOrNull - return null on error #1027727 - loadPageWithTimeoutAndParams |