Declaration

func withUpdatesDisabled<E, T>(_ body: () throws(E) -> T) throws(E) -> T where E : Error

Parameters

body

The 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