Search code examples
core-dataswift2nsmanagedobjectcontext

Is the default behaviour for NSManagedObjectContext save() method a blocking method?


To be very specific: If I get the managed object context from the app delegate and do not set any parameters on it, what happens when running inserts, updates followed by save()?

Does the app block on save() until done?


Solution

  • Yes, the save method blocks. It's not even a default-- that's how it is, always. Does't matter if the context came from the app delegate or somewhere else, save is a synchronous method.