Contents

commit()

Commits all unsaved changes to the event store.

Declaration

func commit() throws

Mentioned in

Discussion

This method allows you to save batched changes to the event store. For example, if you pass false as the commit parameter to the saveCalendar(_:commit:), removeCalendar(_:commit:), save(_:span:commit:), or remove(_:span:commit:) methods, the changes aren’t saved until commit() is invoked. Likewise, if you pass true as the commit parameter to the above methods, you don’t need to call commit().

See Also

Saving and restoring state