Module methods called from a thread, where code runs?

Hello everybody,

If I call a method that is in a module from a thread, will the code in the method run in thread or in main thread?
Is there a function or Introspection code that checks in which thread is the code running?

Thanks

The calling thread is always inherited, so yes: A module method called from a thread will run in this thread.
If you need to run it on the main thread, use a timer or a Xojo.core.timer.CallLater call.

Your other question was answered two days ago here: https://forum.xojo.com/49327-detect-running-in-main-thread

Thanks.