Re: Changing head item on a (GCD) Queue
Dave
Hi Quincey, I thought about using an NSOperationQueue but from what I can tell, when an operation is cancelled it stays on the queue until the NSOperation method gets called which check the “Cancel” property, this means that there will still be a lot of useless Operations in the queue, unless I misunderstand the documentation? As an example: Head: Data 122 (Executing) Data 123 (Cancelled) Data 124 (Cancelled) Data 130 (Cancelled) Data 136 New Data received: Data 137 This will cause Data 136 to be Cancelled and Data 137 to be added to the end of the queue. Is this how it would have to work? All the Best Dave
|
|