Contents

lockIfAvailable()

Attempts to acquire a lock.

Declaration

func lockIfAvailable() -> Bool

Return Value

true if successful; otherwise, false.

See Also

Using locks