| Number of watchers on Github | 316 |
| Number of open issues | 9 |
| Average time to close an issue | 4 days |
| Main language | Objective-C |
| Average time to merge a PR | about 1 hour |
| Open pull requests | 2+ |
| Closed pull requests | 1+ |
| Last commit | about 2 years ago |
| Repo Created | almost 4 years ago |
| Repo Last Updated | over 1 year ago |
| Size | 556 KB |
| Organization / Author | ibireme |
| Contributors | 2 |
| Page Updated | 2018-03-21 |
| Do you use YYDispatchQueuePool? Leave a review! | |
| View open issues (9) | |
| View YYDispatchQueuePool activity | |
| View on github | |
| Fresh, new opensource launches ๐๐๐ | |
|
Trendy new open source projects in your inbox!
View examples
|
|
iOS utility class to manage global dispatch queue.
(It's a component of YYKit)
When use a concurrent queue to execute lots of blocks, I met this problem in some situation:

When some block is locked, the concurrent queue may create lots of thread and may block the main thread. Use a global serial queue pool to avoid it.
// Get a serial queue from global queue pool
dispatch_queue_t queue = YYDispatchQueueGetForQOS(NSQualityOfServiceUtility);
// Create a serial queue pool
YYDispatchQueuePool *pool = [[YYDispatchQueuePool alloc] initWithName:@"file.read" queueCount:5 qos:NSQualityOfServiceBackground];
dispatch_queue_t queue = [pool queue];
pod 'YYDispatchQueuePool' to your Podfile.pod install or pod update.github "ibireme/YYDispatchQueuePool" to your Cartfile.carthage update --platform ios and add the framework to your project.YYDispatchQueuePool.h.Full API documentation is available on CocoaDocs.
You can also install documentation locally using appledoc.
This library requires iOS 6.0+ and Xcode 8.0+.
YYDispatchQueuePool is provided under the MIT license. See LICENSE file for details.
==============
iOS
( YYKit )
concurrent queue block

block concurrent queue serial queue pool
==============
// queue pool queue
dispatch_queue_t queue = YYDispatchQueueGetForQOS(NSQualityOfServiceUtility);
// serial queue pool
YYDispatchQueuePool *pool = [[YYDispatchQueuePool alloc] initWithName:@"file.read" queueCount:5 qos:NSQualityOfServiceBackground];
dispatch_queue_t queue = [pool queue];
==============
pod 'YYDispatchQueuePool'
pod install pod update
github "ibireme/YYDispatchQueuePool"
carthage update --platform ios framework YYDispatchQueuePool.h
============== CocoaDocs API appledoc
==============
iOS 6.0 Xcode 8.0
============== YYDispatchQueuePool MIT LICENSE
============== iOS