1 | static S loadPageWithTimeout(long timeout, S url) {
|
2 | ret loadPageWithTimeout(url, timeout); |
3 | } |
4 | |
5 | static S loadPageWithTimeout(S url, long timeout) ctex {
|
6 | ping(); |
7 | url = loadPage_preprocess(url); |
8 | print("Loading with timeout: " + hideCredentials(url));
|
9 | URL _url = new URL(url); |
10 | ret loadPage( |
11 | setURLConnectionTimeouts(_url.openConnection(), timeout), |
12 | _url); |
13 | } |
14 | |
15 | sS loadPageWithTimeout(S url, double timeoutSeconds) {
|
16 | ret loadPageWithTimeout(url, toMS(timeoutSeconds)); |
17 | } |
18 | |
19 | sS loadPageWithTimeout(double timeoutSeconds, S url) {
|
20 | ret loadPageWithTimeout(url, timeoutSeconds); |
21 | } |
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: | 919 / 1204 |
| Version history: | 6 change(s) |
| Referenced in: | [show references] |