mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-29 09:20:32 +00:00
* [ASCollectionNode] Add -isProcessingUpdates and -onDidFinishProcessingUpdates: APIs. Over time, there have actually been a lot of legitimate uses for an API like this. In fact, I'm not quite sure what has held us back from adding one! I believe that at least some portion of -wait calls (even if less than 50%) could be replaced with -onDidFinishProcessingUpdates:, which could potentially improve the performance of applications using -wait by a significant amount. Please take a close look at implementation correctness. Although I'm in a bit of a rush, I'm aiming to make this properly documented and added a basic test -- but it could certainly use some more detailed testing as a followup. * [ASCollectionNode] Improvements to the implementation of -isProcessingUpdates and -onDidFinishProcessingUpdates: * Add lock to ASMainSerialQueue count method. * [ASTableNode] Implement -isProcessingUpdates and -onDidFinishProcessingUpdates:. Rename -waitUntil to consistent naming.
13 KiB
13 KiB