<@U25U0KPFT> That could work, but he could just as...
# tornadofx
e
@carlw That could work, but he could just assign it to something directly inside
runAsync
even. I'd like to see the code though.
c
@edvin I like the ui method because you're certain when it's called. If you're counting on an atomic operation within the call method followed by a platform runLater it may not work as you expect. Ex connect() followed by a runLater that sets a connected Label
e
@carlw Yeah, if you rely on such a pattern you should. But if you simply set a property and the label is bound towards it, that wouldn't matter. Depending on what you're doing, but I think doing it in
ui
will yield the least surprises 🙂
c
You mean wrap up the property setting Code in a runLater within the runAsync?
e
No, you can modify observable values outside of the ui thread, can't you?
c
Depends on who's doing the observing right?
e
I'm not sure. Even a change happens on another thread, the Node that is bound to this property seems to update OK.