Open GoogleCodeExporter opened 9 years ago
This is a general issue for script languages on the JVM, which are often used
as you describe.
When I looked at JSR-223 when it was published I was disappointed that this
issue was not addressed (as many others).
One workaround would be using the Thread interrupt state for this. Then you
have to start a parallel Thread with is just doing a sleep for the desired
maximum execution time. The first finished task (sleeping or script execution)
will then interrupt the Thread of the other task. And in Interpreter the
interrupt state of the current Thread is checked and if it is set, an
ExecutionException is thrown.
Downside is that some API fail miserably when threads are interrupted...
Original comment by pejob...@gmail.com
on 9 Feb 2012 at 10:42
It seems issue #76 is for the same feature. Link it here. Let's find a proper
and common way to achieve this...
Original comment by verilo...@gmail.com
on 11 Oct 2012 at 7:32
Original issue reported on code.google.com by
hugibertus
on 9 Feb 2012 at 9:54