Page 1 of 1

Looking for a method to reset lua env

Posted: Fri Oct 23, 2020 3:13 am
by zhenzh
Is there a graceful and light method to clean current running LUA env including removing all global/local values, terminating running coroutines and deleting existing temp triggers/timers?

I'm now using resetProfile() and reloadModule() to implement such operation, but I think it's so heavy that all modules/packages are reloaded.

Re: Looking for a method to reset lua env

Posted: Mon Nov 02, 2020 7:05 pm
by Vadi
Just resetProfile() is available for this, it gives you a "fresh start".