1 | static S loadPageWithTimeoutOrNull(long timeout, S url) { |
2 | ret loadPageWithTimeoutOrNull(url, timeout); |
3 | } |
4 | |
5 | static S loadPageWithTimeoutOrNull(S url, long timeout) { |
6 | try { |
7 | ret loadPageWithTimeout(url, timeout); |
8 | } catch e { |
9 | printException(e); |
10 | null; |
11 | } |
12 | } |
13 | |
14 | static S loadPageWithTimeoutOrNull(S url, double timeoutSeconds) { |
15 | ret loadPageWithTimeoutOrNull(url, toMS(timeoutSeconds)); |
16 | } |
Began life as a copy of #1001657
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1014303 |
Snippet name: | loadPageWithTimeoutOrNull - return null on error |
Eternal ID of this version: | #1014303/3 |
Text MD5: | 2965547717b2ad7349be59a31c6b872c |
Author: | stefan |
Category: | |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-04-20 01:01:37 |
Source code size: | 414 bytes / 16 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 346 / 384 |
Version history: | 2 change(s) |
Referenced in: | [show references] |