Quote:
Originally Posted by mpl
So, atexit in one script doesn`t stop defer in other script in any situation (i mean, IDE run scripts in different threads, and these defers have own id somehow)?
|
Not sure I understand your question.
Each script is an entity in itself and it doesn't affect other scripts. Atexit and defer in one script are different from the same things in some other script. Btw, they are not run in different threads. Defers simply defers the execution to a timer. So for each timer tick, all defered functions are ran once more (in consequtive order, not all at once) and when run they may get defered by script again so they are again run at next timer tick etc...until you either close the script or stop deferring from within the script.