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:
@@ -24,7 +24,7 @@ extern void ASPerformMainThreadDeallocation(_Nullable id object)
|
||||
static ASRunLoopQueue *queue;
|
||||
static dispatch_once_t onceToken;
|
||||
dispatch_once(&onceToken, ^{
|
||||
queue = [[ASRunLoopQueue alloc] initWithRunLoop:CFRunLoopGetMain() andHandler:nil];
|
||||
queue = [[ASRunLoopQueue alloc] initWithRunLoop:CFRunLoopGetMain() retainObjects:YES handler:nil];
|
||||
queue.batchSize = 10;
|
||||
});
|
||||
if (object != nil) {
|
||||
|
||||
Reference in New Issue
Block a user