1 | static O evalWithTimeoutOrNull(fO f, int timeoutMS) {
|
2 | ret evalWithTimeoutOrNull(timeoutMS, f); |
3 | } |
4 | |
5 | static O evalWithTimeoutOrNull(int timeoutMS, fO f) {
|
6 | ret eitherAOpt(evalWithTimeout(timeoutMS, f)); |
7 | } |
8 | |
9 | static O evalWithTimeoutOrNull(double timeoutSeconds, fO f) {
|
10 | ret eitherAOpt(evalWithTimeout(timeoutSeconds, f)); |
11 | } |
12 | |
13 | static <A> A evalWithTimeoutOrNull(int timeoutMS, F0<A> f) {
|
14 | ret (A) eitherAOpt(evalWithTimeout(timeoutMS, f)); |
15 | } |
16 | |
17 | static <A> A evalWithTimeoutOrNull(double timeoutSeconds, F0<A> f) {
|
18 | ret (A) eitherAOpt(evalWithTimeout(timeoutSeconds, f)); |
19 | } |
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: | 705 / 745 |
| Version history: | 3 change(s) |
| Referenced in: | [show references] |