Groot icon indicating copy to clipboard operation
Groot copied to clipboard

Question About Concurrency Type for Context

Open the-freshlord opened this issue 7 years ago • 2 comments

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.

the-freshlord avatar Mar 03 '17 20:03 the-freshlord

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.

gonzalezreal avatar Mar 05 '17 18:03 gonzalezreal

Cool thanks for the info. :]

the-freshlord avatar Mar 06 '17 17:03 the-freshlord