Libraryless. Click here for Pure Java version (5596L/32K).
static <A> S evalWithTimeout_text(double timeoutSeconds, IF0<A> f) { ret evalWithTimeout_text(timeoutSeconds, (O) f); } sS evalWithTimeout_text(double timeoutSeconds, fO f) { ret evalWithTimeout_text(toMS_int(timeoutSeconds), f); } // f : func -> O static S evalWithTimeout_text(final int timeoutMS, fO f) { ret pcallOrExceptionText_strOrNull(func { evalWithTimeoutOrException(timeoutMS, func { strOrNull(callF(f)) }) }); }
Began life as a copy of #1018060
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1018065 |
Snippet name: | evalWithTimeout_text - uses strOrNull, pcalls, returns exception text |
Eternal ID of this version: | #1018065/10 |
Text MD5: | 1204c4b4eb9a6f8c71291d0c079d2df5 |
Transpilation MD5: | 8266be7ac724974a6189c05e6d32c062 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2021-10-11 09:50:20 |
Source code size: | 450 bytes / 14 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 367 / 459 |
Version history: | 9 change(s) |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) #1033029 - evalWithTimeout_text_showStackTrace |