try()
Attempts to acquire a lock and immediately returns a Boolean value that indicates whether the attempt was successful.
Declaration
func `try`() -> BoolAttempts to acquire a lock and immediately returns a Boolean value that indicates whether the attempt was successful.
func `try`() -> Bool