Can I use the same instance of EKEventStore for different threads?

I was wondering if it is possible to use one instance of EKEventstore for different threads? I can not find anything about this.

I would like to get a unique instance of EKCalendar for each thread.

+4
source share
1 answer

Description of enumerateEventsMatchingPredicate: usingBlock: and eventsMatchingPredicate: in the EKEventStore link imply that it is safe:

This method is synchronous. For asynchronous behavior, run the method on another thread using dispatch_async or NSOperation.

I am currently doing this in one of my applications and it seems to be working.

0
source

Source: https://habr.com/ru/post/1486231/


All Articles