Contents

save(completion:)

Saves any changes you’ve made in the data store.

Declaration

func save(completion: (@Sendable ((any Error)?) -> Void)? = nil)
func save() async throws

Parameters

  • completion:

    A closure the method calls on completion of the save operation with an optional error value that indicates the reason for failure, if any.

Mentioned in

Discussion