tryLock()
Attempts to acquire a lock.
Declaration
func tryLock() -> BoolReturn Value
Discussion
Returns immediately—contrast lock() which blocks.
See Also
Deprecated instance methods
addPersistentStore(ofType:configurationName:at:options:)destroyPersistentStore(at:ofType:options:)importStore(withIdentifier:fromExternalRecordsDirectoryAt:to:options:ofType:)lock()migratePersistentStore(_:to:options:withType:)replacePersistentStore(at:destinationOptions:withPersistentStoreFrom:sourceOptions:ofType:)unlock()perform(_:)performAndWait(_:)