<!--
{
  "availability" : [
    "iOS: -",
    "iPadOS: -",
    "macCatalyst: -",
    "macOS: -",
    "tvOS: -",
    "visionOS: -",
    "watchOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "Dispatch",
  "identifier" : "/documentation/Dispatch/DispatchQueue/AutoreleaseFrequency",
  "metadataVersion" : "0.1.0",
  "role" : "Enumeration",
  "symbol" : {
    "kind" : "Enumeration",
    "modules" : [
      "Dispatch"
    ],
    "preciseIdentifier" : "s:So17OS_dispatch_queueC8DispatchE20AutoreleaseFrequencyO"
  },
  "title" : "DispatchQueue.AutoreleaseFrequency"
}
-->

# DispatchQueue.AutoreleaseFrequency

Constants indicating the frequency with which a dispatch queue autoreleases objects.

```
enum AutoreleaseFrequency
```

## Topics

### Autorelease Frequencies

[`DispatchQueue.AutoreleaseFrequency.inherit`](/documentation/Dispatch/DispatchQueue/AutoreleaseFrequency/inherit)

The queue inherits its autorelease frequency from its target queue.

[`DispatchQueue.AutoreleaseFrequency.workItem`](/documentation/Dispatch/DispatchQueue/AutoreleaseFrequency/workItem)

The queue configures an autorelease pool before the execution of a block, and releases the objects in that pool after the block finishes executing.

[`DispatchQueue.AutoreleaseFrequency.never`](/documentation/Dispatch/DispatchQueue/AutoreleaseFrequency/never)

The queue does not set up an autorelease pool around executed blocks.

### Hashing Values

### Comparing Types



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)