Contents

try()

Attempts to acquire a lock without regard to the receiver’s condition.

Declaration

func `try`() -> Bool

Return Value

true if the lock could be acquired, false otherwise.

Discussion

This method returns immediately.

See Also

Acquiring and Releasing a Lock