mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-24 07:05:35 +00:00
Add Support for the Run Loop Queue to be Weak (#3214)
* Add support for the run loop queue to be weak * Go back to using a deque for itemsToProcess * Update comment
This commit is contained in:
@@ -2066,7 +2066,8 @@ NSString * const ASRenderingEngineDidDisplayNodesScheduledBeforeTimestamp = @"AS
|
||||
static ASRunLoopQueue<ASDisplayNode *> *renderQueue;
|
||||
dispatch_once(&onceToken, ^{
|
||||
renderQueue = [[ASRunLoopQueue<ASDisplayNode *> alloc] initWithRunLoop:CFRunLoopGetMain()
|
||||
andHandler:^(ASDisplayNode * _Nonnull dequeuedItem, BOOL isQueueDrained) {
|
||||
retainObjects:NO
|
||||
handler:^(ASDisplayNode * _Nonnull dequeuedItem, BOOL isQueueDrained) {
|
||||
[dequeuedItem _recursivelyTriggerDisplayAndBlock:NO];
|
||||
if (isQueueDrained) {
|
||||
CFTimeInterval timestamp = CACurrentMediaTime();
|
||||
|
||||
Reference in New Issue
Block a user