AddUserInterfaceUpdate vs Timer calls for UI updates

When in a thread, is there a difference between using AddUserInterfaceUpdate or a timer (e.g. timer.callLater) to trigger an update to UI?

I understand that AddUserInterfaceUpdate should pass the progress back to the main thread, does a timer do the same?

Years ago, using a Timer was the only way you could call some code in the main thread from another thread. AddUserInterfaceUpdate is just a cleaner way to achieve the same effect.

1 Like

Personally, I find it more organized to keep things close together. I would use the thread’s Method + Event pair even if all it did was keep thread related code together. Has the bonus of saving us the work of implementing a Timer to watch the progress :slight_smile:

2 Likes