Created
February 5, 2020 00:13
-
-
Save ozcanzaferayan/83e0fe3f5f004751159f9a8d84d0b0ca to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Kuyruk tarafından gruplanan çağrılar `buckets` içerisindedir | |
for (id queue in buckets) { | |
dispatch_block_t block = ^{ | |
NSOrderedSet *calls = [buckets objectForKey:queue]; | |
for (NSNumber *indexObj in calls) { | |
// Gerçek çağrım | |
} | |
}; | |
if (queue == RCTJSThread) { | |
[_javaScriptExecutor executeBlockOnJavaScriptQueue:block]; | |
} else if (queue) { | |
dispatch_async(queue, block); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment