---
title: "setAllowsUnloading(_:)"
framework: Core Audio
role: symbol
role_heading: Instance Method
platforms: [macOS 15.0+]
path: "coreaudio/audiohardwaresystem/setallowsunloading(_:)"
---

# setAllowsUnloading(_:)

Set the allowsUnloading property.

## Declaration

```swift
func setAllowsUnloading(_ allowed: Bool) throws
```

## Parameters

- `allowed`: A Bool where true indicates that this process wants the HAL to unload itself after a period of inactivity where there are no IOProcs and no listeners registered with any object.
