- changed title to Finer-grained timeout
- marked as enhancement
- edited description
Finer-grained timeout
Issue #332
new
Currently, the initial lua-methodcall is timed. It would be useful to have a more fine-grained control, for example only timing the mx and if it times out, have some nice handling code.
The solution would be to introduce explicit lua timing which then calls a provided timeout method in the idp code. Pointers: http://lua-users.org/lists/lua-l/2006-10/msg00764.html
A better/easier solution would be to add a new inference bool time(lua-closure, timeout)
which starts a timer thread and then executes the lua-closure. If it times out, true is returned, false otherwise.
Comments (3)
-
-
- edited description
-
reporter Has been fixed for mx, not yet in general
see https://bitbucket.org/krr/idp/commits/a1ed350bd549e9fe5626a9352143c10656a55660
- Log in to comment