Contents

tryLock()

Attempts to acquire a lock.

Declaration

func tryLock() -> Bool

Return Value

true if successful, otherwise false.

Discussion

Returns immediately—contrast lock() which blocks.

See Also

Deprecated instance methods