AsyncUpdater question


I have a ValueTree, each child of that tree is a state of an object that’s created at creation time of my application. The objects created from the trees children are AsyncUpdater and call their triggerAsyncUpdate() method once their done restoring. My question: is it fair to assume that the handleAsyncUpdate() method will be called after ALL children are done loading, since the loading is done in a loop across all children and no threading is involved ?

is it in theory possible that the “as soon as possible” event will occur duing the loop (witch is bad since my objects need to know about all other objects at the time of the call).


If you’re doing all this stuff on the message thread, then yes: no callbacks will be able to happen until the message loop gets a chance to run again.