I have real time updates to the data within my ListBindingSectionController. This involves retrieving data from a server, updating local variables, then calling self.update(animated: false).
Sometimes a race condition occurs with data retrieved from the server and the calling of update(animated:) which forces the last update(animated:) call to not complete. This leads to inconsistencies within the section controller. Is there any way to make sure that all updates will be completed, like queueing them?
What do you mean not complete? Like the completion block?
Sent with GitHawk
Sorry, I mean that the completion block gets called but the completed variable returned from the update function is false. So I guess the update function gets cancelled because there’s already an update going on.
Sent with GitHawk
Sorry, I mean that the completion block gets called but the
completedvariable returned from the update function isfalse. So I guess the update function gets cancelled because there’s already an update going on.Sent with GitHawk
ListBindingSectionController Not have Queue, I have the same problem。
Yup, this looks like a bug. We should be queuing completion blocks and executing all of them on unload.
Most helpful comment
Yup, this looks like a bug. We should be queuing
completionblocks and executing all of them on unload.