gonzalezreal / Groot

From JSON to Core Data and back.
Other
534 stars 61 forks source link

Question About Concurrency Type for Context #77

Open the-freshlord opened 7 years ago

the-freshlord commented 7 years ago

Hi,

I was wondering if the context being passed can have a concurrency type of PrivateQueueConcurrencyType or does the context being passed need to have a concurrency type MainQueueConcurrencyType? Thanks.

gonzalezreal commented 7 years ago

Hi there,

Groot doesn't care about the concurrency type of the managed object context that is passed to any of its methods. It uses performBlockAndWait to ensure that method calls on the context are synchronous and happen on the context queue.

the-freshlord commented 7 years ago

Cool thanks for the info. :]