Best approach for using Threads?

What is the safe way to use threading with haxe-ui.
I want to update a list asynchronously, it sometimes work but it’s not thread safe and crash if I interact with the ui during the update.

I was wondering how you would approach it or if there is an haxe-ui’s way of dealing with threads ?


There isnt anything in haxeui for handling threads, do you have an example of what you are trying to do? It might make sense to make things a little more threadsafe (if possible)