Synchronously performs a given block on the context’s queue.
On This Page
func performAndWait(_ block: @escaping () -> Void)
The block to perform.
You use this method to send messages to managed objects if the context was initialized using privateQueueConcurrencyType or mainQueueConcurrencyType.
This method may safely be called reentrantly.
func perform(() -> Void)
Asynchronously performs a given block on the context’s queue.