---
title: "withLockIfAvailableUnchecked(_:)"
framework: os
role: symbol
role_heading: Instance Method
path: "os/osallocatedunfairlock/withlockifavailableunchecked(_:)-15q0y"
---

# withLockIfAvailableUnchecked(_:)

## Declaration

```swift
func withLockIfAvailableUnchecked<R>(_ body: (inout State) throws -> R) rethrows -> R?
```
