DRProducerConsumerQueue implements a queue with an attached producer block, which runs automatically until the queue has at least a specified number of items ready to consume.
The queue is synchronized on the main thread, while the production work itself can be done in the background.
DRProducerConsumerQueue is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod 'DRProducerConsumerQueue'
Dan Raviv, [email protected]
DRProducerConsumerQueue is available under the MIT license. See the LICENSE file for more info.