static S loadPageWithTimeoutOrNull(long timeout, S url) { ret loadPageWithTimeoutOrNull(url, timeout); } static S loadPageWithTimeoutOrNull(S url, long timeout) { try { ret loadPageWithTimeout(url, timeout); } catch e { printException(e); null; } } static S loadPageWithTimeoutOrNull(S url, double timeoutSeconds) { ret loadPageWithTimeoutOrNull(url, toMS(timeoutSeconds)); }
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: | 347 / 384 |
Version history: | 2 change(s) |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) |