Ordering of Completion Handlers
Ordering of Completion Handlers
- Subject: Ordering of Completion Handlers
- From: Andreas Grosam <email@hidden>
- Date: Fri, 31 Aug 2012 10:08:55 +0200
Hi All!
I have a number of operations that will be received serially. Each operation can be processed concurrently with respect to each other. I would like to invoke the completion blocks for each operation in the order as they have been received.
I'm searching a simple approach to achieve this, implemented using NSOperationQueue, NSOperation and dispatch lib.
Background:
This is a class utilizing NSURLConnection which can handle multipart/x-mixed-replace Content-types. For each part, a completion block will be invoked passing the corresponding response and the result of the corresponding data processor. The part completion blocks shall be invoked in the same order as they occur in the response data, but *may be* processed concurrently.
Any ideas?
Thanks in advance!
Regards
Andreas
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden