static O evalWithTimeoutOrNull(fO f, int timeoutMS) { ret evalWithTimeoutOrNull(timeoutMS, f); } static O evalWithTimeoutOrNull(int timeoutMS, fO f) { ret eitherAOpt(evalWithTimeout(timeoutMS, f)); } static O evalWithTimeoutOrNull(double timeoutSeconds, fO f) { ret eitherAOpt(evalWithTimeout(timeoutSeconds, f)); } static <A> A evalWithTimeoutOrNull(int timeoutMS, F0<A> f) { ret (A) eitherAOpt(evalWithTimeout(timeoutMS, f)); } static <A> A evalWithTimeoutOrNull(double timeoutSeconds, F0<A> f) { ret (A) eitherAOpt(evalWithTimeout(timeoutSeconds, f)); }
Began life as a copy of #1009329
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: | #1012516 | 
| Snippet name: | evalWithTimeoutOrNull - return null if timeout | 
| Eternal ID of this version: | #1012516/4 | 
| Text MD5: | dc9a4874dfae767a0f01f8c5d03d49e0 | 
| Author: | stefan | 
| Category: | javax | 
| Type: | JavaX fragment (include) | 
| Public (visible to everyone): | Yes | 
| Archived (hidden from active list): | No | 
| Created/modified: | 2017-12-19 01:41:38 | 
| Source code size: | 588 bytes / 19 lines | 
| Pitched / IR pitched: | No / No | 
| Views / Downloads: | 703 / 742 | 
| Version history: | 3 change(s) | 
| Referenced in: | [show references] |