Libraryless. Click here for Pure Java version (9795L/69K).
| 1 | // call veryQuickJava_transpiled.set("") beforehand to get
 | 
| 2 | // transpiled code in veryQuickJava_transpiled! | 
| 3 | sO dm_javaEvalWithTimeout(double timeoutSeconds, S expression) {
 | 
| 4 | S tl = veryQuickJava_transpiled!; | 
| 5 | new Var<S> transpilation; | 
| 6 |   try {
 | 
| 7 |     ret evalWithTimeoutOrFail(timeoutSeconds, () -> {
 | 
| 8 | veryQuickJava_transpiled.set(tl); | 
| 9 |       try {
 | 
| 10 | ret dm_javaEval(expression); | 
| 11 |       } finally {
 | 
| 12 | transpilation.set(veryQuickJava_transpiled!); | 
| 13 | } | 
| 14 | }); | 
| 15 |   } finally {
 | 
| 16 | veryQuickJava_transpiled.set(transpilation!); | 
| 17 | } | 
| 18 | } | 
Began life as a copy of #1017136
download show line numbers debug dex old transpilations
Travelled to 4 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1030072 | 
| Snippet name: | dm_javaEvalWithTimeout | 
| Eternal ID of this version: | #1030072/8 | 
| Text MD5: | e179089a47506271c47ffae8f2e9a00f | 
| Transpilation MD5: | d17c750732d500c156f4f88c554aac61 | 
| Author: | stefan | 
| Category: | javax / stefan's os | 
| Type: | JavaX fragment (include) | 
| Public (visible to everyone): | Yes | 
| Archived (hidden from active list): | No | 
| Created/modified: | 2020-11-11 11:23:38 | 
| Source code size: | 561 bytes / 18 lines | 
| Pitched / IR pitched: | No / No | 
| Views / Downloads: | 442 / 551 | 
| Version history: | 7 change(s) | 
| Referenced in: | [show references] |