Re: -[NSManagedObjectContext performBlock:] concurrent or serial?
Re: -[NSManagedObjectContext performBlock:] concurrent or serial?
- Subject: Re: -[NSManagedObjectContext performBlock:] concurrent or serial?
- From: Mike Abdullah <email@hidden>
- Date: Fri, 14 Jun 2013 08:32:23 +0100
On 14 Jun 2013, at 00:03, email@hidden wrote:
>
> On May 31, 2013, at 7:40 PM, Rick Mann <email@hidden> wrote:
>
>> Hi. If I issue a bunch of -performBlock: calls on a particular Managed Object Context, will they execute serially or concurrently?
>>
>> Thanks,
>>
>> --
>> Rick
>
> I'm assuming serially and I would like to know too so I was hoping someone would provide a definitive answer. Did I miss it or did nobody respond to this?
Core Data guarantees that the tasks *won't* be executed in parallel. I can find no documented guarantee that they'll be performed in the *same order* as they were *enqueued* though. But, in practice MOCs implement their queue internally using a GCD serial queue, so you'll get the same serialization behaviour as that.
_______________________________________________
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