Are you happy with your logging solution? Would you help us out by taking a 30-second survey? Click here

YYDispatchQueuePool

iOS utility class to manage global dispatch queue.

Subscribe to updates I use YYDispatchQueuePool


Statistics on YYDispatchQueuePool

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 over 2 years ago
Repo Created about 4 years ago
Repo Last Updated over 1 year ago
Size 556 KB
Organization / Authoribireme
Contributors2
Page Updated
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

Subscribe to our mailing list

Evaluating YYDispatchQueuePool for your project? Score Explanation
Commits Score (?)
Issues & PR Score (?)

YYDispatchQueuePool

License MITย  Carthage compatibleย  CocoaPodsย  CocoaPodsย  Supportย  Build Status

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.

Usage

// 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];

Installation

CocoaPods

  1. Add pod 'YYDispatchQueuePool' to your Podfile.
  2. Run pod install or pod update.
  3. Import <YYDispatchQueuePool/YYDispatchQueuePool.h>.

Carthage

  1. Add github "ibireme/YYDispatchQueuePool" to your Cartfile.
  2. Run carthage update --platform ios and add the framework to your project.
  3. Import <YYDispatchQueuePool/YYDispatchQueuePool.h>.

Manually

  1. Download all the files in the YYDispatchQueuePool subdirectory.
  2. Add the source files to your Xcode project.
  3. Import YYDispatchQueuePool.h.

Documentation

Full API documentation is available on CocoaDocs.
You can also install documentation locally using appledoc.

Requirements

This library requires iOS 6.0+ and Xcode 8.0+.

License

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];

==============

CocoaPods

  1. Podfile pod 'YYDispatchQueuePool'
  2. pod install pod update
  3. <YYDispatchQueuePool/YYDispatchQueuePool.h>

Carthage

  1. Cartfile github "ibireme/YYDispatchQueuePool"
  2. carthage update --platform ios framework
  3. <YYDispatchQueuePool/YYDispatchQueuePool.h>
  1. YYDispatchQueuePool
  2. YYDispatchQueuePool ()
  3. YYDispatchQueuePool.h

============== CocoaDocs API appledoc

============== iOS 6.0 Xcode 8.0

============== YYDispatchQueuePool MIT LICENSE

============== iOS

YYDispatchQueuePool open issues Ask a question     (View All Issues)
  • about 3 years YYTextView ่‹ฑๆ–‡่พ“ๅ…ฅ็‚นๅ‡ป่”ๆƒณ่ฏ๏ผŒๆ›ฟๆขๆœ‰้—ฎ้ข˜
  • over 3 years use_frameworks! + YYText + YYDispatchQueuePool is incompatable combination
  • almost 4 years ่ฟ™ไธชไปฃ็  ็š„ๆ„ไน‰ๆ˜ฏไป€ไนˆ๏ผŸ
  • almost 4 years ไฝ ่ฏด็š„้‚ฃ็งไธ€ไธช็บฟ็จ‹ๆญป้”ๅฏผ่‡ด็ณป็ปŸๆ— ้™ๅˆถๅˆ›ๅปบๅญ็บฟ็จ‹็š„demoไปฃ็ 
  • about 4 years ็บฟ็จ‹่ฟ‡ๅคšๆœ‰ไฝ•ไธๅฅฝไน‹ๅค„?
YYDispatchQueuePool open pull requests (View All Pulls)
  • fix YYDispatchContextCreate leaks
  • Update podspec, iOS 8 required.
YYDispatchQueuePool list of languages used
Other projects in Objective-C