Skip to content

Instantly share code, notes, and snippets.

@ozcanzaferayan
Created February 5, 2020 00:13
Show Gist options
  • Save ozcanzaferayan/83e0fe3f5f004751159f9a8d84d0b0ca to your computer and use it in GitHub Desktop.
Save ozcanzaferayan/83e0fe3f5f004751159f9a8d84d0b0ca to your computer and use it in GitHub Desktop.
// 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