I have some questions about thread safety.
- Will Hubitat execute all of script's methods on a single thread, or multiple threads? Methods such as installed(), updated(), various event handlers.
- If multiple threads are calling my script, is there a preferred synchronization mechanism? SmartThings documentation suggests to not use synchronized yet fails to mention if something needs to be used instead. According to this thread it seems like @Synchronized is not working in Hubitat.
I tried looking at the documentation (both Hubitat and SmartThings), but failed to find the answers. Perhaps someone could point me to it if it's there?
Also looks like script is called from multiple threads after all, but isn't this a big issue that this is not mentioned in the docs?