Replies: 2 comments 3 replies
-
It seems that |
Beta Was this translation helpful? Give feedback.
-
Same reason as #119
You probably don't need
More elegant way is to trigger |
Beta Was this translation helpful? Give feedback.
-
I need to cap memory usage of the lua context, so I am trying to check current memory usage in interrupt handler since
set_memory_limit
is not available with Luau. Using anArc<Mutex<Lua>>
doesn't work either since it doesn't drop the lock while executing code.EDIT: also i'm not quite sure what is the right way to stop execution,
return Err(mlua::Error::RuntimeError("script took too long to execute".to_owned()));
seems to work but doesn't feel rightBeta Was this translation helpful? Give feedback.
All reactions