Libraryless. Click here for Pure Java version (3319L/21K).
static <A> A evalWithTimeoutOrFail(int timeoutMS, F0<A> f) { ret evalWithTimeoutOrException(timeoutMS, f); } static <A> A evalWithTimeoutOrFail(double timeoutSeconds, F0<A> f) { ret evalWithTimeoutOrException(timeoutSeconds, f); } static <A> A evalWithTimeoutOrFail(int timeoutMS, IF0<A> f) { ret evalWithTimeoutOrException(timeoutMS, f); } static <A> A evalWithTimeoutOrFail(double timeoutSeconds, IF0<A> f) { ret evalWithTimeoutOrException(timeoutSeconds, f); } svoid evalWithTimeoutOrFail(int timeoutMS, Runnable r) { evalWithTimeoutOrException(timeoutMS, runnableToF0(r)); } svoid evalWithTimeoutOrFail(double timeoutSeconds, Runnable r) { evalWithTimeoutOrException(timeoutSeconds, runnableToF0(r)); }
download show line numbers debug dex old transpilations
Travelled to 4 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1030071 | 
| Snippet name: | evalWithTimeoutOrFail - preferred function to use now | 
| Eternal ID of this version: | #1030071/4 | 
| Text MD5: | 11a712c30e71a9b8ebb97d713ae461de | 
| Transpilation MD5: | ffd56ce7424050997de6403a771374e9 | 
| Author: | stefan | 
| Category: | |
| Type: | JavaX fragment (include) | 
| Public (visible to everyone): | Yes | 
| Archived (hidden from active list): | No | 
| Created/modified: | 2020-11-04 13:11:42 | 
| Source code size: | 745 bytes / 23 lines | 
| Pitched / IR pitched: | No / No | 
| Views / Downloads: | 456 / 558 | 
| Version history: | 3 change(s) | 
| Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) |