Will the thread ends when the xojoscript.Run ends?

here is my steps:

1,create a class inherits from xojoscript call “AScript”
2,create a context method “Aloopthread” to AScript,the “Aloopthread” could reads another script and longforever,sleep every 1 seconds.
3,x =new AScript
4,x.compile and x.Run()

well,the scripts is call Aloopthread(" loop();")

will this ok?

a script run another script.and will the Aloopthread will continue to run when the x.Run() ends?

Have you tried it?

sorry no…I wondering how to use…