nsoperationqueue Questions

7

Solved

I have an Operation subclass and Operation queue with maxConcurrentOperationCount = 1. This performs my operations in a sequential order that i add them which is good but now i need to wait until ...
Overbuild asked 27/2, 2017 at 21:7

3

Solved

Thanks in advance for help, I have two API calls, both are concurrent and any call could be success first(I don't want call in sequence), after success of both calls, I have to stop my activity ind...
Klaraklarika asked 27/5, 2018 at 23:32

7

Solved

I'm moving my code from regular GCD to NSOperationQueue because I need some of the functionality. A lot of my code relies on dispatch_after in order to work properly. Is there a way to do something...

1

I’m currently migrating my app to use the concurrency model in Swift. I want to serialize Tasks to make sure they are executed one after the other (no paralellism). In my use case, I want to listen...

3

Solved

As the title suggests, what is the default value of the maxConcurrentOperationCount for NSOperationQueue? Is it set to a value of 1?
Sounding asked 21/2, 2013 at 6:19

9

Solved

I'm learning about concurrent programming for iOS. So far I've read about NSOperation/NSOperationQueue and GCD. What are the reasons for using NSOperationQueue over GCD and vice versa? Sounds like...

3

Solved

i need to put asynchronous operations into an operation queue, however, they need to execute on after the other self.operationQueue = [NSOperationQueue new]; self.operationQueue.maxConcurrentOpera...
Egestion asked 12/11, 2014 at 14:54

3

Solved

I need to pause a running NSOperation which was inserted in an NSOperationQueue. Currently I am canceling all operations and restarting them. But this would lead to some kind of duplication in term...
Jessabell asked 16/8, 2012 at 8:50

2

I'm looking into concurrency options for Python. Since I'm an iOS/macOS developer, I'd find it very useful if there was something like NSOperationQueue in python. Basically, it's a queue to which ...
Cultrate asked 19/12, 2017 at 12:26

2

Solved

I'm downloading files using NSOperation (s) and adding them NSOperationQueue. NSOperationQueue is getting suspended when app goes in the background. Is there any work around if queue will not suspe...

3

Solved

There are 3 Operations in my OperationQueue and i'm not able to cancel specific operation from them. I referred this example but i can't understand it NSOperationQueue cancel specific operations ...
Casease asked 27/1, 2020 at 7:35

7

Solved

I'm trying to build a bulk image downloader, where images can be added to a queue on the fly to be downloaded, and I can find out the progress and when they're done downloading. Through my reading...
Candiscandle asked 20/2, 2014 at 20:24

6

Solved

i need to do a series of url calls (fetching WMS tiles). i want to use a LIFO stack so the newest url call is the most important. i want to display the tile on the screen now, not a tile that was o...
Burks asked 9/4, 2012 at 19:24

1

Solved

I am making three api calls and want that API1 should execute first, once completed API2 should execute followed by API3. I used operation queue for this with adding dependency over operations. I t...
Barilla asked 29/7, 2019 at 2:32

1

Solved

With the arrival of combine framework, is there a need to use operation queues anymore. For example, apple uses operation queues almost all over the place in WWDC app. So if we use SwiftUI wi...
Hylophagous asked 9/7, 2019 at 7:23

8

Referring https://developer.apple.com/reference/foundation/operation, I am having Playground setup as - class myOperation1 : Operation { override func main() { print("op1 working....") } } cla...
Purine asked 14/2, 2017 at 9:50

3

Solved

How can I make an NSOperationQueue (or anything else) wait for two async network calls with callbacks? The flow needs to look like this Block Begins { Network call with call back/block begins { ...
Forgo asked 2/12, 2014 at 21:44

4

NSOperationQueue creates many threads, as you'd expect, and desire. But when you pause the app and debug it in Xcode, it's unclear which threads belong to one operation queue and which belong to an...
Picoline asked 21/3, 2013 at 23:14

3

Solved

I am very new to GCD and threading. I have gone through the tutorials and getting very much confusion. Can some one explain in simple words.Please don't suggest apple developer links.. Thanks in ...

3

Solved

I've got a bunch of NSOperations added to a NSOperationQueue. The operation queue has the maxConcurrentOperationCount set to 1, so that the NSOperations run one after the other. Now, in the comple...
Ba asked 10/7, 2012 at 12:18

2

Solved

When performing operations that are dependent on each other OperationQueue could be used to assure they are executed in the correct order. However, would it also be possible to assure that operatio...
Churchly asked 7/10, 2016 at 9:22

2

Solved

I'm using the below code to shift a view and my tableview up when my keyboard is activated. When the keyboard is closed however, it takes the upView a solid 2 seconds after the keyboard closes to r...
Eleaseeleatic asked 29/1, 2018 at 18:38

2

Solved

I need to know that When does a NSOperationQueue remove an operation from the queue? I have NSOperationQueue which has list of NSOperation. At which point the NSOperationQueue removes an operation...
Ludmilla asked 3/2, 2014 at 6:49

3

Solved

I created a NSOperationQueue to download images (from Twitter for Cell): NSOperationQueue *queue = [[NSOperationQueue alloc]init]; [queue addOperationWithBlock:^{ NSString *ImagesUrl = [[NSStrin...

3

Solved

The new Cloud Kit framework uses NSOperation extensively for it's CRUD. The results of those operations are returned in blocks. For example: let fetchOperation = CKFetchRecordsOperation(recordIDs:...
Wellington asked 25/6, 2014 at 9:36

© 2022 - 2025 — McMap. All rights reserved.