Instance Method
withUpdatesDisabled(_:)
Performs work while deferring updates and change notifications.
Not available in Objective-C.Not available in Python.
Declaration
func withUpdatesDisabled<E, T>(_ body: () throws(E) -> T) throws(E) -> T where E : ErrorParameters
bodyThe work to perform.
Return Value
The value returned by the body.
Discussion
Updates are processed when the body returns or throws. Updates remain disabled when they were already disabled on entry.
See Also
Update Control
Whether updates and change notifications are deferred.
Suppresses update tracking for current and subsequent changes.
Whether update tracking is suppressed.
Defers updates and change notifications.
Processes deferred updates and sends combined change notifications.
Resumes updates without reporting changes made while updates were disabled or ignored.