Libraryless. Click here for Pure Java version (9795L/69K).
// call veryQuickJava_transpiled.set("") beforehand to get // transpiled code in veryQuickJava_transpiled! sO dm_javaEvalWithTimeout(double timeoutSeconds, S expression) { S tl = veryQuickJava_transpiled!; new Var<S> transpilation; try { ret evalWithTimeoutOrFail(timeoutSeconds, () -> { veryQuickJava_transpiled.set(tl); try { ret dm_javaEval(expression); } finally { transpilation.set(veryQuickJava_transpiled!); } }); } finally { veryQuickJava_transpiled.set(transpilation!); } }
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: | 211 / 292 |
Version history: | 7 change(s) |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) |