Thanh Tran
Thanh Tran

Reputation: 47

What is the limit number of operations currently in NSOperationQueue queue

I cannot find any documents that mention "What is the limit number of operations currently in NSOperationQueue queue?"

Can my queue still work if it has 1000 Facebook-graph-request operations?

Thanks

Upvotes: 2

Views: 1508

Answers (1)

jrturton
jrturton

Reputation: 119272

There is no API-enforced limit to the number of operations you can add to a queue, any more than there is a limit to the number of objects you can add to an NSArray.

Any limitations are those imposed by the device, notably the available memory. If you are adding so many operations you run out of memory to hold them, let alone execute them, you're doing it wrong.

Upvotes: 4

Related Questions